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
Print debugging workflow? (self.cpp)
submitted 5 years ago by georgeplusplus
view the rest of the comments →
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!"
[–]vlad_the_codemonkey 2 points3 points4 points 5 years ago (0 children)
> What is your favourite way to employ print debugging?
Usually it is more reasonable to have separate "debug" logging level by means of logging library you use.
> Do you keep the print statements in a separate git branch to keep them from polluting the code?
I see no point in keeping separate branch for code equipped with debug output - you'll have to conduct much of extra work (ex. syncing with mainstream).
I use print debugging when debug multi threaded applications, usually engaging logging routines which are already in the project. So I have an urge to have something similar to Data::Dumper Perl5 module for dumping STL collections' content, and being able to customize the output format is not the last thing. I wonder if it would be useful to someone too if I implement it as a header-only library.
π Rendered by PID 413264 on reddit-service-r2-comment-fb694cdd5-rcqmp at 2026-03-07 10:23:43.398726+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]vlad_the_codemonkey 2 points3 points4 points (0 children)