Shows how to use debug class.
#include <xtd/diagnostics/debug>
#include <xtd/diagnostics/ostream_trace_listener>
#include <xtd/console>
auto main() -> int {
debug::listeners().push_back(new_ptr<ostream_trace_listener>(console::out));
debug::auto_flush(true);
debug::indent();
debug::write_line("Entering Main");
console::write_line("Hello World.");
debug::write_line("Exiting Main");
debug::unindent();
}
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