Module rkos::debug [] [src]

Interface to a debugger.

Set cfg(debug_backend) to one of "bochs" or "vga" to select the debugger backend, otherwise the default no-op backend will be used. The Bochs backend works under Bochs with the port e9 hack enabled, and the VGA backend doesn't really exist yet.

The implementation of fmt::Write allows output to be written directly to a debug console:

write!(&mut Debugger, "Hello from line {}\n", line!()).unwrap();



Stateless debugger interface.