<p>Briefly: Does anyone know of a GUI for gdb that brings it on par or close to the feature set you get in the more recent version of Visual C++?</p>

<p>In detail:  As someone who has spent a lot of time programming in Windows, one of the larger stumbling blocks I've found whenever I have to code C++ in Linux is that debugging anything using commandline gdb takes me several times longer than it does in Visual Studio, and it does not seem to be getting better with practice.  Some things are just easier or faster to express graphically.</p>

<p>Specifically, I'm looking for a GUI that:</p>

<ul>
<li>Handles all the basics like stepping over &amp; into code, watch variables and breakpoints</li>
<li>Understands and can display the contents of complex &amp; nested C++ data types</li>
<li>Doesn't get confused by and preferably can intelligently step through templated code and data structures while displaying relevant information such as the parameter types</li>
<li>Can handle threaded applications and switch between different threads to step through or view the state of</li>
<li>Can handle attaching to an already-started process or reading a core dump, in addition to starting the program up in gdb</li>
</ul>

<p>If such a program does not exist, then I'd like to hear about experiences people have had with programs that meet at least some of the bullet points.
Does anyone have any recommendations?</p>

<p><strong>Edit:</strong><br>
Listing out the possibilities is great, and I'll take what I can get, but it would be even more helpful if you could include in your responses:<br>
(a) Whether or not you've actually used this GUI and if so, what positive/negative feedback you have about it.<br>
(b) If you know, which of the above-mentioned features are/aren't supported</p>

<p>Lists are easy to come by, sites like this are great because you can get an idea of people's personal experiences with applications.</p>

[{'answer_id': 79050, 'author': 'Vicent Marti', 'author_id': 4381, 'author_profile': 'https://Stackoverflow.com/users/4381', 'pm_score': 7, 'selected': True, 'text': "<p>You won't find <em>anything</em> overlaying GDB which can compete with the raw power of the Visual Studio debugger. It's just too powerful, and it's just too well integrated inside the IDE. </p>\n\n<p>For a Linux alternative, try DDD if free software is your thing.</p>\n"}, {'answer_id': 79058, 'author': 'Allen', 'author_id': 6043, 'author_profile': 'https://Stackoverflow.com/users/6043', 'pm_score': 2, 'selected': False, 'text': "<p>What can be stepped through is going to be limited by the debugging information that g++ produces, to a large extent. Emacs provides an interface to gdb that lets you control it via the toolbars/menus and display data in separate windows, as well as type gdb commands directly. Eclipse's CDT provides similar tools. I've heard of Anjuta and Code::Blocks but never used them.</p>\n"}, {'answer_id': 79070, 'author': 'user14636', 'author_id': 14636, 'author_profile': 'https://Stackoverflow.com/users/14636', 'pm_score': 3, 'selected': False, 'text': '<p>Check out the Eclipse CDT project. It is a plugin for Eclipse geared towards C/C++ development and includes a fairly feature rich debugging perspective (that behind the scenes uses GDB).  It is available on a wide variety of platforms.</p>\n'}, {'answer_id': 79080, 'author': 'mmattax', 'author_id': 1638, 'author_profile': 'https://Stackoverflow.com/users/1638', 'pm_score': 3, 'selected': False, 'text': '<p>DDD is the GNU frontend for gdb: <a href="http://www.gnu.org/software/ddd/" rel="noreferrer">http://www.gnu.org/software/ddd/</a></p>\n'}, {'answer_id': 79099, 'author': 'Harold Ekstrom', 'author_id': 8429, 'author_profile': 'https://Stackoverflow.com/users/8429', 'pm_score': 1, 'selected': False, 'text': '<p>KDevelop works pretty well.</p>\n'}, {'answer_id': 79177, 'author': 'Milan Babuškov', 'author_id': 14690, 'author_profile': 'https://Stackoverflow.com/users/14690', 'pm_score': 0, 'selected': False, 'text': '<p>Latest version of Geany supports it (only on Linux, though)</p>\n'}, {'answer_id': 79179, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 6, 'selected': False, 'text': '<p>gdb -tui works okay if you want something GUI-ish, but still character based.</p>\n'}, {'answer_id': 79186, 'author': 'Nick Bastin', 'author_id': 1502059, 'author_profile': 'https://Stackoverflow.com/users/1502059', 'pm_score': 4, 'selected': False, 'text': "<p>I use DDD a lot, and it's pretty powerful once you learn to use it.  One thing I would say is don't use it over X over the WAN because it seems to do a lot of unnecessary screen updates.</p>\n\n<p>Also, if you're not mated to GDB and don't mind ponying up a little cash, then I would try TotalView.  It has a bit of a steep learning curve (it could definitely be more intuitive), but it's the best C++ debugger I've ever used on any platform and can be extended to introspect your objects in custom ways (thus allowing you to view an STL list as an actual list of objects, and not a bunch of confusing internal data members, etc.)</p>\n"}, {'answer_id': 79209, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>As someone familiar with Visual Studio, I've looked at several open source IDE's to replace it, and KDevelop comes the closest IMO to being something that a Visual C++ person can just sit down and start using.  When you run the project in debugging mode, it uses gdb but kdevelop pretty much handles the whole thing so that you don't have to know it's gdb; you're just single stepping or assigning watches to variables.</p>\n\n<p>It still isn't as good as the Visual Studio Debugger, unfortunately.</p>\n"}, {'answer_id': 79284, 'author': 'Jon Ball', 'author_id': 10216, 'author_profile': 'https://Stackoverflow.com/users/10216', 'pm_score': 6, 'selected': False, 'text': '<p>Eclipse CDT will provide an experience comparable to using Visual Studio.  I use Eclipse CDT on a daily basis for writing code and debugging local and remote processes.</p>\n<p>If you\'re not familiar with using an Eclipse based IDE, the GUI will take a little getting used to.  However, once you get to understand the GUI ideas that are unique to Eclipse (e.g. a perspective), using the tool becomes a nice experience.</p>\n<p>The CDT tooling provides a decent C/C++ indexer that allows you to quickly find references to methods in your code base.  It also provides a nice macro expansion tool and limited refactoring support.</p>\n<p>With regards to support for debugging, CDT is able to do everything in your list with the exception of reading a core dump (it may support this, but I have never tried to use this feature).  Also, my experience with debugging code using templates is limited, so I\'m not sure what kind of experience CDT will provide in this regard.</p>\n<p>For more information about debugging using Eclipse CDT, you may want to check out these guides:</p>\n<ul>\n<li><a href="http://www.ibm.com/developerworks/library/os-eclipse-cdt-debug2/index.html" rel="nofollow noreferrer">Interfacing with the CDT debugger, Part 2: Accessing gdb with the Eclipse CDT and MI</a></li>\n<li><a href="http://download.eclipse.org/tools/cdt/docs/tutorials/debug_tutorial/cdt_w_debug.htm" rel="nofollow noreferrer">CDT Debug Tutorial</a></li>\n</ul>\n'}, {'answer_id': 120575, 'author': 'Andrew Edgecombe', 'author_id': 11694, 'author_profile': 'https://Stackoverflow.com/users/11694', 'pm_score': 3, 'selected': False, 'text': '<p>I\'ve tried a couple of different guis for gdb and have found DDD to be the better of them.\nAnd while I can\'t comment on other, non-gdb offerings for linux I\'ve used a number of other debuggers on other platforms.</p>\n\n<p>gdb does the majority of the things that you have in your wish list. DDD puts a nicer front on them. For example thread switching is made simpler. Setting breakpoints is as simple as you would expect.</p>\n\n<p>You also get a cli window in case there is something obscure that you want to do.</p>\n\n<p>The one feature of DDD that stands out above any other debugger that I\'ve used is the data "graphing". This allows you to display and arrange structures, objects and memory as draggable boxes. Double clicking a pointer will open up the dereferenced data with visual links back to the parent.</p>\n'}, {'answer_id': 236840, 'author': 'codeguru', 'author_id': 31476, 'author_profile': 'https://Stackoverflow.com/users/31476', 'pm_score': 3, 'selected': False, 'text': '<p>I used KDbg (only works under KDE). </p>\n'}, {'answer_id': 405843, 'author': 'BubbaT', 'author_id': 29178, 'author_profile': 'https://Stackoverflow.com/users/29178', 'pm_score': 1, 'selected': False, 'text': "<p>Have you tried gdb -w with cygwin gdb.\nIt is supossed to have a windows interface which works fairly well.</p>\n\n<p>The only problem I found is that on my present machine it didn't run that way until after I installed ddd. I suspect that it requires tcltk which was installed when I installed ddd.</p>\n"}, {'answer_id': 409241, 'author': 'Johannes Schaub - litb', 'author_id': 34509, 'author_profile': 'https://Stackoverflow.com/users/34509', 'pm_score': 3, 'selected': False, 'text': '<p>Similar comfortable to the eclipse gdb frontend is the emacs frontend, tightly tied to the emacs IDE. If you already work with emacs, you will like it:</p>\n\n<p><a href="https://stackoverflow.com/questions/164693/whats-the-best-stable-c-ide-with-a-gui-that-runs-on-linux#350855">GDB Emacs Frontend</a></p>\n'}, {'answer_id': 501947, 'author': 'Adam Pierce', 'author_id': 5324, 'author_profile': 'https://Stackoverflow.com/users/5324', 'pm_score': 2, 'selected': False, 'text': '<p>You don\'t mention whether you are using Windows or UNIX.</p>\n\n<p>On UNIX systems, <a href="http://www.kdevelop.org/" rel="nofollow noreferrer">KDevelop</a> is good but I use <a href="http://www.kdbg.org/" rel="nofollow noreferrer">KDbg</a> because it is easy to use and will also work with apps not developed in KDevelop.</p>\n\n<p><a href="http://www.eclipse.org/" rel="nofollow noreferrer">Eclipse</a> is good on both platforms.</p>\n\n<p>On Windows, there is a great package called <a href="http://wascana.sourceforge.net/" rel="nofollow noreferrer">Wascana Desktop Developer</a> which is Eclipse CDT and MinGW all packaged up and preconfigured nicely for the minimum of pain. Its the best thing I\'ve found for developing GNU code on Windows.</p>\n\n<p>I have used all these debuggers and none of them are as good as MS Dev Studio. Eclipse/Wascana is probably the closest but it does have limitations like you cannot step into DLLs and it doesn\'t do as good a job at examining variables.</p>\n'}, {'answer_id': 501980, 'author': 'Adam Hawes', 'author_id': 54415, 'author_profile': 'https://Stackoverflow.com/users/54415', 'pm_score': 5, 'selected': False, 'text': "<p>I loathe the idea of Windows development, but the VC++ debugger is among the best I've seen.  I haven't found a GUI front end that comes close to the VC one.</p>\n\n<p>GDB is awesome once you really get used to it.  Use it in anger enough and you'll become very proficient.  I can whiz around a program doing all the things you listed without much effort anymore.  It did take a month or so of suffering over a SSH link to a remote server before I was proficient.  I'd never go back though.</p>\n\n<p>DDD is really powerful but it was quite buggy.  I found it froze up quite often when it got messages from GDB that it didn't grok.  It's good because it has a gdb interface window so you can see what's going on and also interact with gdb directly.  DDD can't be used on a remote X session in my environment (a real problem, since I'm sitting at a thin client when I do Unix dev) for some reason so it's out for me.</p>\n\n<p>KDevelop followed typical KDE style and exposed EVERYTHING to the user.  I also never had any luck debugging non KDevelop programs in KDevelop.</p>\n\n<p>The Gnat Programming Studio (GPS) is actually quite a good front-end to GDB.  It doesn't just manage Ada projects, so it's worth trying out if you are in need of a debugger.</p>\n\n<p>You could use Eclipse, but it's pretty heavy weight and a lot of seasoned Unix people I've worked with (me included) don't care much for its interface, which won't just STFU and get out of your way.  Eclipse also seems to take up a lot of space and run like a dog.</p>\n"}, {'answer_id': 1130950, 'author': 'cod', 'author_id': 136206, 'author_profile': 'https://Stackoverflow.com/users/136206', 'pm_score': 5, 'selected': False, 'text': '<p>I use cgdb, simple and usefull</p>\n'}, {'answer_id': 1842740, 'author': 'Dominic.wig', 'author_id': 184997, 'author_profile': 'https://Stackoverflow.com/users/184997', 'pm_score': 0, 'selected': False, 'text': '<p>If you are looking for gdb under Visual Studio, then check <a href="http://www.wingdb.com" rel="nofollow noreferrer">WinGDB</a>.</p>\n'}, {'answer_id': 1842846, 'author': 'Radim Cernej', 'author_id': 104816, 'author_profile': 'https://Stackoverflow.com/users/104816', 'pm_score': 0, 'selected': False, 'text': '<p>In the last 15 months I use insight (came with FC6). It is not great, it is written in Tcl/Tk, but it is simple and useful.  DDD is of similar quality / utility, but somewhat harder to use (various GUI gotchas and omissions).  I also tried to integrate gdb with my IDE, SlickEdit.  It worked OK (I played some 4 hours with it), but I did not like the GUI context switches. I like my IDE to remain unchanged while I am debugging; on Windows I use SlickEdit for IDE and Visual Studio Debugger for debugging.  So from the 3: Insight, DDD and SlickEdit, Insight is my 1st choice, I use it >95% of the time, command-line gdb and DDD make up the other 5%.  If I get the chance, I will eval Eclipse at some point, my work PC does not seem to have enough RAM (1GB only) to run Eclipse reasonably well.</p>\n\n<p>I have also heard a lot of praise for TotalView, including 1st hand during a job interview.  I obtained an eval for our company in late 2008, but in the end we did not proceed as gdb was good enough for our needs; and it is free and ubiquitous.</p>\n'}, {'answer_id': 3557038, 'author': 'Soulman', 'author_id': 368491, 'author_profile': 'https://Stackoverflow.com/users/368491', 'pm_score': 5, 'selected': False, 'text': '<p>Qt Creator seems like good stuff.  A colleague showed me one way set it up for debugging:</p>\n\n<ul>\n<li>Create a new project, "Import of Makefile-based Project".</li>\n<li>Point it to your root project folder (it will index sources under it, and it is impressively fast).</li>\n<li>Go to project settings and add a run configuration, then specify the executable you want to debug, and its arguments.</li>\n<li>Qt Creator seems to insist on building your project before debugging it.  If you don\'t want that, or don\'t use make, just go to projects -> build (Left panel), then, on the right panel in "Build Steps", remove all the steps, including the step by default when you created the project. </li>\n</ul>\n\n<p>That may seem like a bit much work for debugging an app I had already compiled, but it is worth it.  The debugger shows threads, stacks and local variables in a similar way to Visual Studio and even uses many of the same keyboard shortcuts.  It seems to handle templates well, at least std::string and std::map.  Attaching to existing processes and core dumps seems to be supported, though I haven\'t tested it yet.</p>\n\n<p>Keep in mind that I used it for less than and hour now, but I\'m impressed so far.</p>\n'}, {'answer_id': 4233557, 'author': 'Marv', 'author_id': 514555, 'author_profile': 'https://Stackoverflow.com/users/514555', 'pm_score': 3, 'selected': False, 'text': "<p>Qt Creator-on-Linux is certainly on par with Visual Studio-on-Windows for C++ nowadays. I'd even say better on the debugger side.</p>\n"}, {'answer_id': 6196790, 'author': 'Sergey Shandar', 'author_id': 374845, 'author_profile': 'https://Stackoverflow.com/users/374845', 'pm_score': 6, 'selected': False, 'text': '<p>Check out <a href="https://wiki.gnome.org/Apps/Nemiver">Nemiver C/C++ Debugger</a>. It is easy to install in Ubuntu (Developer Tools/Debugging).</p>\n\n<p><strong>Update:</strong> New link.</p>\n'}, {'answer_id': 8256149, 'author': 'crobar', 'author_id': 685984, 'author_profile': 'https://Stackoverflow.com/users/685984', 'pm_score': 2, 'selected': False, 'text': '<p>The <a href="http://www.codeblocks.org/" rel="nofollow">Code:Blocks</a> C++ IDE has a graphical wrapper, with a few of the features you want, but nothing like the power of VS.</p>\n'}, {'answer_id': 9307103, 'author': 'siddhusingh', 'author_id': 306819, 'author_profile': 'https://Stackoverflow.com/users/306819', 'pm_score': 0, 'selected': False, 'text': '<p>Use www.zero-bugs.com/\nZero debugger, it requires C++0x support from gcc</p>\n'}, {'answer_id': 19943130, 'author': 'Florent', 'author_id': 847202, 'author_profile': 'https://Stackoverflow.com/users/847202', 'pm_score': 3, 'selected': False, 'text': '<p>There\'s one IDE that is missing in this list and which is very efficient (I\'ve used it in many C/C++ projects without any issues): <a href="https://netbeans.org/kb/docs/cnd/quickstart.html" rel="noreferrer">Netbeans</a>.</p>\n'}, {'answer_id': 23900374, 'author': 'Sergey Zhukov', 'author_id': 1656467, 'author_profile': 'https://Stackoverflow.com/users/1656467', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://visualgdb.com" rel="nofollow">VisualGDB</a> is another Visual Studio plugin to develop and debug applications on linux and embedded platforms. </p>\n'}, {'answer_id': 29491016, 'author': 'Viktor Malyi', 'author_id': 1254211, 'author_profile': 'https://Stackoverflow.com/users/1254211', 'pm_score': 2, 'selected': False, 'text': '<p>Have you ever taken a look at <a href="https://developer.arm.com/products/software-development-tools/ds-5-development-studio/ds-5-debugger/overview" rel="nofollow noreferrer">DS-5 debugger</a>?</p>\n\n<p>There is a paid version which includes a lot of helpful features, but you can also use Community Edition for free (which is also quite useful especially for embedded systems).</p>\n\n<p>I have a positive experience with this tool when debugging Android applications on real device using eclipse.</p>\n'}, {'answer_id': 38191320, 'author': 'Cutton Eye', 'author_id': 5612605, 'author_profile': 'https://Stackoverflow.com/users/5612605', 'pm_score': 0, 'selected': False, 'text': '<p>I was searching for a debugger to step through a running programm. Say: Attach. The programm was build with eclipse, but because of maybe some multithreadding obstrucles, no sourcefiles where fond. What ever.</p>\n\n<p>I got very compfortable with NetBeans.</p>\n\n<ul>\n<li>[debug] from menu -> Attach Deugger...</li>\n<li>as process chose the one to debug</li>\n<li>as project [new project]</li>\n</ul>\n\n<p>Now the window disappars and you see nothing. detach from the process. The Read Square "Stop" helps.</p>\n\n<ul>\n<li>import source from the project as e.g. folder. ".../MyProject/src</li>\n<li>Now it appears in your project, and you can set breakpoints.</li>\n<li>again ttach debugger</li>\n<li>chose the process to debug.</li>\n<li>debugger should stop if programm reaches next breakpoint.</li>\n</ul>\n\n<p>Going to [window] -> [Debugging] -> Will your window make compfortable.</p>\n'}]
['https://Stackoverflow.com/questions/79023', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14266/']