The following code example demonstrate the use of enable_debug class.
- Windows
-
- macOS
-
- Gnome
-
#define DEBUG
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text("Enable debug example");
name("form1");
button1.auto_repeat(true);
button1.auto_size(true);
button1.location({10, 10});
button1.parent(*this);
button1.text("click-me");
button1.name("button1");
text_box1.location({10, 50});
text_box1.parent(*this);
text_box1.text("Text box");
text_box1.name("text_box1");
}
private:
};
int main() {
enable_debug::set(enable_debug::key_events|enable_debug::mouse_events, true);
application::run(form1());
}
Represents a standard Windows text box.
Definition text_box.h:22
@ verbose
Output all debugging and tracing messages.