[go: up one dir, main page]

Function init

Source
pub fn init()
Expand description

Sets the DebuggerLogger as the currently-active logger.

If an error occurs when registering DebuggerLogger as the current logger, this function will output a warning and will return normally. It will not panic. This behavior was chosen because DebuggerLogger is intended for use in debugging. Panicking would disrupt debugging and introduce new failure modes. It would also create problems for mixed-mode debugging, where Rust code is linked with C/C++ code.