/cpp-debugio

Primary LanguageC++MIT LicenseMIT

Purpose

  1. I want to have the ability to output debug messages on Linux. (like OutputDebugString in Windows).
  2. I want to have the ability to read debug messages.

Usage

write debug message

debugio::write_string("Hello World!");

read/watch debug message

debugio::Monitor monitor;
monitor.start([](debugio::Buffer* buf) -> int {
    fprintf(stdout, "[pid:%d] %s\n", buf->processID, buf->data);
    return 0;
});
// ...
monitor.stop();