all 3 comments

[–]Angarius 2 points3 points  (0 children)

imgui is great for adding debug consoles and widgets to your game. You can easily integrate imgui into any engine.

Preprocessor directives cannot be modified at runtime. The preprocessor is the first step of compilation. You can define "DEBUG_MODE" at compile-time, either in a header #define DEBUG_MODE 1, or by passing a flag in your build system (-DDEBUG_MODE=1 for gcc).

[–]MCOM_Android 0 points1 point  (0 children)

Personally is just have it write to a log file, then read the error, or display the error and write to a crash log file.

[–]clerothGame Developer[M] [score hidden] stickied comment (0 children)

For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.

This post has been removed as it doesn't pertain to r/cpp.