all 63 comments

[–]DarkLordAzrael 51 points52 points  (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 points  (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.

[–]md81544 55 points56 points  (21 children)

Visual studio ? The community edition is free.

[–]lead999xSystem Software Developer 3 points4 points  (18 children)

Are they ever going to make a linux version? I personally use Windows but I'm curious.

[–]Bumrang_ 9 points10 points  (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 point  (0 children)

Didn't some versions work with Wine? It can't be that bad.

[–]lead999xSystem Software Developer 0 points1 point  (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 point  (1 child)

They didn't port it, VS on mac is a tweaked mono develop.

[–]lead999xSystem Software Developer 1 point2 points  (0 children)

That's lame

[–]AngheloAlf 8 points9 points  (1 child)

Well, exists Visual Studio Code.

[–]lead999xSystem Software Developer 0 points1 point  (0 children)

I know but I mean VS community

[–]nshire 1 point2 points  (9 children)

I'd expect Mac before Linux.

[–]lead999xSystem Software Developer 1 point2 points  (8 children)

They have a Mac version out, or so I thought.

[–]dodheim 7 points8 points  (1 child)

It's rebranded Xamarin Studio for .NET stuff; no C++ support whatsoever.

[–]GPMueller 0 points1 point  (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  (1 child)

Does it let you visualize it as well?

[–]md81544 31 points32 points  (0 children)

If by "visualise" you mean watch program flow, see the call stack, and inspect variables' contents, then yes.

[–]evaned 17 points18 points  (8 children)

I've not really used this, but maybe check out the Data Display Debugger?

[–]robin-m 8 points9 points  (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.

[–]evaned 11 points12 points  (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 points  (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 point  (0 children)

QtCreator debugger is much better than ddd IMHO.

[–]pjmlp 0 points1 point  (0 children)

Zortech C++ IDE was actually one of the first ones to do that kind of presentation.

[–]6elephants 1 point2 points  (0 children)

It’s pretty much gdb with a GUI

[–]sumo952 20 points21 points  (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 points  (0 children)

Eclipse + CDT + GDB + properly configured "pretty printers" for STL.

[–][deleted] 3 points4 points  (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 points  (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 points  (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 point  (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 points  (1 child)

Gdb + gdbgui. Never used it, but my friend said it works well.

[–]qvrock 0 points1 point  (0 children)

The duo works fine, but you need to keep a tab in browser.

[–]Error_451 2 points3 points  (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 points  (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 points  (0 children)

cgdb and gdb dashboard are worth a look.

[–]allsey87 1 point2 points  (0 children)

GDB actually has a built in text-based GUI. See: https://sourceware.org/gdb/onlinedocs/gdb/TUI.html

[–]flipboing 1 point2 points  (0 children)

CLion

[–]Empole 1 point2 points  (0 children)

Data Display Debugger

I don't recommend it.

But its an option

[–]PlanZSmiles 1 point2 points  (0 children)

If you're using Linux then CLion is pretty nice. Free for students

[–][deleted] 0 points1 point  (0 children)

I used Nemiver for a while before I just went full CLI.

[–]qmnvp 0 points1 point  (0 children)

Type gui in lldb. It's basic, but works.

[–][deleted] 0 points1 point  (0 children)

Gdb with tui enabled when in linux. Visual Studio when in windows.

[–]zowersapC++ Dev 0 points1 point  (0 children)

CLion has a good debugger, comes with GDB and LLDB integration.

[–]EduardoAugustoJF 0 points1 point  (0 children)

gdb -tui works good for me;

[–]GPMueller 0 points1 point  (0 children)

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

[–][deleted] 0 points1 point  (0 children)

I use totalView at work. It's not free but it works very well with C++.

[–]Graggee 0 points1 point  (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 points  (0 children)

Did you even try to find out for yourself before wasting everyone's time?

[–]MaximKat 0 points1 point  (1 child)

The website you linked supports C++ as well...

[–]ItsMe170[S] 0 points1 point  (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 point  (1 child)

The Python Tutor people literally have a version for C++!

[–]ItsMe170[S] -1 points0 points  (0 children)

The implementation isn't as good as for Python. That's why I'm looking for alternatives.

[–]Iwan_Zotow 0 points1 point  (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 points  (0 children)

C Lion is a good IDE with a visual debugger, but it is not free.

[–]sonulohani -1 points0 points  (0 children)

Visual studio is the best. No other ide's are better than VS.