- I want to have the ability to output debug messages on Linux. (like OutputDebugString in Windows).
- I want to have the ability to read debug messages.
debugio::write_string("Hello World!");
debugio::Monitor monitor;
monitor.start([](debugio::Buffer* buf) -> int {
fprintf(stdout, "[pid:%d] %s\n", buf->processID, buf->data);
return 0;
});
// ...
monitor.stop();