Shows how to use xtd::diagnostics::console_trace_listener class.
#define DEBUG
#include <xtd/diagnostics/debug>
#include <xtd/diagnostics/console_trace_listener>
#include <xtd/threading/thread>
#include <memory>
auto main() -> int {
debug::listeners({new_ptr<console_trace_listener>()});
debug::write_line("Begin");
debug::indent();
for (auto step = 1; step <= 10; step++) {
debug::write_line("working step {}...", step);
threading::thread::sleep(300_ms);
}
debug::unindent();
debug::write_line("End");
}
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10