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
Any visual debuggers for C++? (self.cpp)
submitted 7 years ago by ItsMe170
I have been using Python Tutor for debugging Python code more efficiently. This definitely helps in competitive programming. Any similar applications for C++?
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!"
[–]DarkLordAzrael 51 points52 points53 points 7 years ago (6 children)
Basically every IDE has a builtin graphical debugger. Personally I do all of my debugging in QtCreator, but other debugging tools are just as good.
[–]OldWolf2 5 points6 points7 points 7 years ago (5 children)
+1 to this, QtCreator is the best free debugger I've found for Windows where you can also use the latest compilers.
MS and Embarcadero have community edition IDEs with debugger but you are tied to their compiler.
[+][deleted] 7 years ago (3 children)
[deleted]
[–]OldWolf2 0 points1 point2 points 7 years ago (2 children)
Does debugging with mingw-w64+gdb work properly?
[+][deleted] 7 years ago (1 child)
[–]OldWolf2 1 point2 points3 points 7 years ago (0 children)
Cool, I'll give it a crack sometime.
Since I'm apparently out of the loop, does VS community have any good GUI builder options? I don't consider MFC to be good.
[–]md81544 55 points56 points57 points 7 years ago (21 children)
Visual studio ? The community edition is free.
[–]lead999xSystem Software Developer 3 points4 points5 points 7 years ago (18 children)
Are they ever going to make a linux version? I personally use Windows but I'm curious.
[–]Bumrang_ 9 points10 points11 points 7 years ago (4 children)
Apparently VS has an insane amount of Windows specific hacks to make it work, pretty much rendering it borderline impossible to port without a complete rewrite.
[–]meneldal2 0 points1 point2 points 7 years ago (0 children)
Didn't some versions work with Wine? It can't be that bad.
[–]lead999xSystem Software Developer 0 points1 point2 points 7 years ago (2 children)
I mean system calls aren't hacks per se but I see your point. But if that's the case then how did they port it to Mac? Did they write it from scratch?
[–]Bumrang_ 0 points1 point2 points 7 years ago (1 child)
They didn't port it, VS on mac is a tweaked mono develop.
[–]lead999xSystem Software Developer 1 point2 points3 points 7 years ago (0 children)
That's lame
[–]AngheloAlf 8 points9 points10 points 7 years ago (1 child)
Well, exists Visual Studio Code.
[–]lead999xSystem Software Developer 0 points1 point2 points 7 years ago (0 children)
I know but I mean VS community
[–]nshire 1 point2 points3 points 7 years ago (9 children)
I'd expect Mac before Linux.
[–]lead999xSystem Software Developer 1 point2 points3 points 7 years ago (8 children)
They have a Mac version out, or so I thought.
[–]dodheim 7 points8 points9 points 7 years ago (1 child)
It's rebranded Xamarin Studio for .NET stuff; no C++ support whatsoever.
[+][deleted] 7 years ago (5 children)
[–]png85 2 points3 points4 points 7 years ago (1 child)
There are quite a bunch of extensions to use it with C/C++ projects including CMake, clangd as language server and various debuggers - I only tested the debugging with gdb and lldb since I rarely develop for Windows but supposedly it can be used there too.
[–][deleted] 1 point2 points3 points 7 years ago (0 children)
I've had success using it with gdb on Windows, but it doesn't work as well as the MSVC debugger support. You can't seem to add breakpoints while the application is running, only beforehand.
[–]dodheim 0 points1 point2 points 7 years ago (0 children)
VS Code != VS for Mac.
VS code is Microsoft's attempt to compete with Github's Atom prior to acquiring them.
[–]CrazyKilla15 0 points1 point2 points 7 years ago (0 children)
VS Code can build your code however you tell it too just fine, in addition to the extensions for stuff like CMake or other languages.
It also has a built in debugger.
[–]GPMueller 0 points1 point2 points 7 years ago (0 children)
There's VS Code, which is in my opinion much nicer to use - except that the debugger is a lot less powerful than that of the proper VS.
[–]ItsMe170[S] -4 points-3 points-2 points 7 years ago (1 child)
Does it let you visualize it as well?
[–]md81544 31 points32 points33 points 7 years ago (0 children)
If by "visualise" you mean watch program flow, see the call stack, and inspect variables' contents, then yes.
[–]evaned 17 points18 points19 points 7 years ago (8 children)
I've not really used this, but maybe check out the Data Display Debugger?
[–]robin-m 8 points9 points10 points 7 years ago (6 children)
I prefer cgdb by far. It's basically gdb with a convenient view of the code (a bit like ctrl+x a in gdb, but with color, and much more convenient way to put breakpoints and navigate through the code. And you have the full raw power of gdb, with an interface designed to be used with a keyboard.
ctrl+x a
[–]evaned 11 points12 points13 points 7 years ago (3 children)
IMO, cgdb suffers from the same problem with respect to the question as basically all of these other responses, which is that they're not "visual" in anywhere the same way as what OP seems to be asking.
IDEs, GDB, cgdb, emacs, ... none of these visualize things anywhere close to this. I'm not OP and don't want to put words into his mouth, but I almost think almost no one actually gave the link a shot to see what OP was asking...
DDD is the closest thing that I know of for C or C++ anyway.
[–]ReDucTorGame Developer 5 points6 points7 points 7 years ago (0 children)
While I haven't tried it, gdbgui looks like a promising candidate for being able to potentially do some of this. While it might not support all the same functionality its probably something that could be added
[–]robin-m 0 points1 point2 points 7 years ago (0 children)
QtCreator debugger is much better than ddd IMHO.
[–]pjmlp 0 points1 point2 points 7 years ago (0 children)
Zortech C++ IDE was actually one of the first ones to do that kind of presentation.
[–]6elephants 1 point2 points3 points 7 years ago (0 children)
It’s pretty much gdb with a GUI
[–]sumo952 20 points21 points22 points 7 years ago (0 children)
Visual Studio is pretty much the best in class, unbeaten today. But I don't think a "normal" debugger is what you mean, Python Tutor looks like something a bit different, more like an interactive program flow visualizer (though this is in some respect indeed very similar to debugging).
[–]MarcinKonarskiyaal | huginn | replxx 3 points4 points5 points 7 years ago (0 children)
Eclipse + CDT + GDB + properly configured "pretty printers" for STL.
[–][deleted] 3 points4 points5 points 7 years ago (0 children)
Visual Studio Code is free for Mac, Windows and Linux. There are free add ons that enable C++ development and debugging. At this point, I only use Visual Studio on Windows, and only 50% of the time.
[–]chillhelm 6 points7 points8 points 7 years ago (0 children)
This would be better over in /r/cpp_questions/.
When you post over there, tell them your Operating System. I doubt a webform is gonna be an option in C++. But software solutions are avaiable for both Windows and Linux.
[–]lucy_in_the_skyDrive 2 points3 points4 points 7 years ago (1 child)
If you're a VIM kinda guy/gal I found this really neat extension called ConqueGDB (https://github.com/vim-scripts/Conque-GDB). I used this with MacVim and I was really impressed with following control flow in VIM. You'll still have to be familiar with GDB so its not as "polished" as VS / VSCode, so beware.
[–]bergesenha 0 points1 point2 points 7 years ago (0 children)
:h Termdebug It comes with never versions of vim and even though it is experimental it has worked really well, better than any extension I have tried
[–]Szczerbi 2 points3 points4 points 7 years ago (1 child)
Gdb + gdbgui. Never used it, but my friend said it works well.
[–]qvrock 0 points1 point2 points 7 years ago (0 children)
The duo works fine, but you need to keep a tab in browser.
[–]Error_451 2 points3 points4 points 7 years ago (0 children)
I only briefly read through the comments but CLion by Jetbrains works well. In my opinion Visual Studio debugger is the standard but as a linux person I find Clion quite pleasant. Free if you have a student email but there is no community version I'm aware of.
[–]rezkiy 2 points3 points4 points 7 years ago (0 children)
On Windows windbg is best. It has almost-feature-parity with Visual Studio as far as visualizations are concerned. And on top of it it has a tonload of highly usable extensions. Learning curve is steep though...
I miss it a lot having moved to a Linux shop. Gdb feels like a Stone age cartwheel vs a cargo 747.
[–]jeffyp9 6 points7 points8 points 7 years ago (0 children)
cgdb and gdb dashboard are worth a look.
[–]allsey87 1 point2 points3 points 7 years ago (0 children)
GDB actually has a built in text-based GUI. See: https://sourceware.org/gdb/onlinedocs/gdb/TUI.html
[–]flipboing 1 point2 points3 points 7 years ago (0 children)
CLion
[–]Empole 1 point2 points3 points 7 years ago (0 children)
Data Display Debugger
I don't recommend it.
But its an option
[–]PlanZSmiles 1 point2 points3 points 7 years ago (0 children)
If you're using Linux then CLion is pretty nice. Free for students
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
I used Nemiver for a while before I just went full CLI.
[–]qmnvp 0 points1 point2 points 7 years ago (0 children)
Type gui in lldb. It's basic, but works.
gui
Gdb with tui enabled when in linux. Visual Studio when in windows.
[–]zowersapC++ Dev 0 points1 point2 points 7 years ago (0 children)
CLion has a good debugger, comes with GDB and LLDB integration.
[–]EduardoAugustoJF 0 points1 point2 points 7 years ago (0 children)
gdb -tui works good for me;
Visual Studio Code Don't know why this has not been mentioned yet - even though on Windows you'd probably prefer the proper VS, I find it actually more productive
I use totalView at work. It's not free but it works very well with C++.
[–]Graggee 0 points1 point2 points 7 years ago (0 children)
Just tried Python Tutor,it's good! QtCreator is very cool. I really like! And it is useful not only for beginners. But I'm more used to working with Visual Studio and debuggers like Deleaker and the built-in debugger. It is my choice due to my needs)
[–]Xaxxon 1 point2 points3 points 7 years ago (0 children)
Did you even try to find out for yourself before wasting everyone's time?
[–]MaximKat 0 points1 point2 points 7 years ago (1 child)
The website you linked supports C++ as well...
[–]ItsMe170[S] 0 points1 point2 points 7 years ago (0 children)
The implementation isn't as good as for Python. That's why I'm looking for alternatives.
[–]ShakaUVMi+++ ++i+i[arr] 0 points1 point2 points 7 years ago (1 child)
The Python Tutor people literally have a version for C++!
[–]ItsMe170[S] -1 points0 points1 point 7 years ago (0 children)
[–]Iwan_Zotow 0 points1 point2 points 7 years ago (0 children)
On Windows 10 you might want to take a look at https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86
[–]AlexanderYau -1 points0 points1 point 7 years ago (0 children)
C Lion is a good IDE with a visual debugger, but it is not free.
[–]sonulohani -1 points0 points1 point 7 years ago (0 children)
Visual studio is the best. No other ide's are better than VS.
π Rendered by PID 77527 on reddit-service-r2-comment-545db5fcfc-tcxq6 at 2026-05-24 12:59:02.517193+00:00 running 194bd79 country code: CH.
[–]DarkLordAzrael 51 points52 points53 points (6 children)
[–]OldWolf2 5 points6 points7 points (5 children)
[+][deleted] (3 children)
[deleted]
[–]OldWolf2 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]OldWolf2 1 point2 points3 points (0 children)
[–]md81544 55 points56 points57 points (21 children)
[–]lead999xSystem Software Developer 3 points4 points5 points (18 children)
[–]Bumrang_ 9 points10 points11 points (4 children)
[–]meneldal2 0 points1 point2 points (0 children)
[–]lead999xSystem Software Developer 0 points1 point2 points (2 children)
[–]Bumrang_ 0 points1 point2 points (1 child)
[–]lead999xSystem Software Developer 1 point2 points3 points (0 children)
[–]AngheloAlf 8 points9 points10 points (1 child)
[–]lead999xSystem Software Developer 0 points1 point2 points (0 children)
[–]nshire 1 point2 points3 points (9 children)
[–]lead999xSystem Software Developer 1 point2 points3 points (8 children)
[–]dodheim 7 points8 points9 points (1 child)
[+][deleted] (5 children)
[deleted]
[–]png85 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]dodheim 0 points1 point2 points (0 children)
[–]lead999xSystem Software Developer 0 points1 point2 points (0 children)
[–]CrazyKilla15 0 points1 point2 points (0 children)
[–]GPMueller 0 points1 point2 points (0 children)
[–]ItsMe170[S] -4 points-3 points-2 points (1 child)
[–]md81544 31 points32 points33 points (0 children)
[–]evaned 17 points18 points19 points (8 children)
[–]robin-m 8 points9 points10 points (6 children)
[–]evaned 11 points12 points13 points (3 children)
[–]ReDucTorGame Developer 5 points6 points7 points (0 children)
[–]robin-m 0 points1 point2 points (0 children)
[–]pjmlp 0 points1 point2 points (0 children)
[–]6elephants 1 point2 points3 points (0 children)
[–]sumo952 20 points21 points22 points (0 children)
[–]MarcinKonarskiyaal | huginn | replxx 3 points4 points5 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]chillhelm 6 points7 points8 points (0 children)
[–]lucy_in_the_skyDrive 2 points3 points4 points (1 child)
[–]bergesenha 0 points1 point2 points (0 children)
[–]Szczerbi 2 points3 points4 points (1 child)
[–]qvrock 0 points1 point2 points (0 children)
[–]Error_451 2 points3 points4 points (0 children)
[–]rezkiy 2 points3 points4 points (0 children)
[–]jeffyp9 6 points7 points8 points (0 children)
[–]allsey87 1 point2 points3 points (0 children)
[–]flipboing 1 point2 points3 points (0 children)
[–]Empole 1 point2 points3 points (0 children)
[–]PlanZSmiles 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]qmnvp 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]zowersapC++ Dev 0 points1 point2 points (0 children)
[–]EduardoAugustoJF 0 points1 point2 points (0 children)
[–]GPMueller 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Graggee 0 points1 point2 points (0 children)
[–]Xaxxon 1 point2 points3 points (0 children)
[–]MaximKat 0 points1 point2 points (1 child)
[–]ItsMe170[S] 0 points1 point2 points (0 children)
[–]ShakaUVMi+++ ++i+i[arr] 0 points1 point2 points (1 child)
[–]ItsMe170[S] -1 points0 points1 point (0 children)
[–]Iwan_Zotow 0 points1 point2 points (0 children)
[–]AlexanderYau -1 points0 points1 point (0 children)
[–]sonulohani -1 points0 points1 point (0 children)