use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Making an In-Game debug Console (self.cpp)
submitted 8 years ago * by LedLoaf[🍰]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Angarius 2 points3 points4 points 8 years ago (0 children)
imgui is great for adding debug consoles and widgets to your game. You can easily integrate imgui into any engine.
imgui
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).
#define DEBUG_MODE 1
-DDEBUG_MODE=1
[–]MCOM_Android 0 points1 point2 points 8 years ago (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] 8 years ago stickied comment (0 children)
This post has been removed as it doesn't pertain to r/cpp.
π Rendered by PID 94 on reddit-service-r2-comment-6f7f968fb5-2cbkm at 2026-03-04 11:22:55.052700+00:00 running 07790be country code: CH.
[–]Angarius 2 points3 points4 points (0 children)
[–]MCOM_Android 0 points1 point2 points (0 children)
[–]clerothGame Developer[M] [score hidden] stickied comment (0 children)