The following code example demonstrate the use of enable_debug class.
#define DEBUG
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Enable debug example");
name("form1");
text_box1.location({10, 50});
text_box1.parent(*this);
text_box1.text("Text box");
text_box1.name("text_box1");
}
private:
};
int main() {
debug_form debug_form;
}
xtd::diagnostics::trace_level level() const
Gets the trace level that determines the messages the switch allows.
@ verbose
Output all debugging and tracing messages.
@ text_box
The system-defined color of the accent color (macos specific. On other platform is same as window).