tag:blogger.com,1999:blog-865923359735383241.post4335937496702035055..comments2023-10-29T07:27:09.012-06:00Comments on Ccna final exam - java, php, javascript, ios, cshap all in one: C++ gdb GUIUnknownnoreply@blogger.comBlogger24125tag:blogger.com,1999:blog-865923359735383241.post-82065533864007115172012-05-29T00:58:28.442-06:002012-05-29T00:58:28.442-06:00Use www.zero-bugs.com/
Zero debugger, it requires ...Use www.zero-bugs.com/<br />Zero debugger, it requires C++0x support from gccUserhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-39021334171257700382012-05-29T00:58:26.708-06:002012-05-29T00:58:26.708-06:00The Code:Blocks C++ IDE has a graphical wrapper, w...The Code:Blocks C++ IDE has a graphical wrapper, with a few of the features you want, but nothing like the power of VS.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-18915671745515197372012-05-29T00:58:25.790-06:002012-05-29T00:58:25.790-06:00In the last 15 months I use insight (came with FC6...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.<br /><br />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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-87315759615869256242012-05-29T00:58:25.091-06:002012-05-29T00:58:25.091-06:00If you are looking for gdb under Visual Studio, th...If you are looking for gdb under Visual Studio, then check WinGDB.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-86862410444028114712012-05-29T00:58:24.472-06:002012-05-29T00:58:24.472-06:00Latest version of Geany supports it (only on Linux...Latest version of Geany supports it (only on Linux, though)Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-73736490580227223042012-05-29T00:58:23.849-06:002012-05-29T00:58:23.849-06:00KDevelop works pretty well.KDevelop works pretty well.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-26033536327289465432012-05-29T00:58:22.906-06:002012-05-29T00:58:22.906-06:00I am using Affinic Debugger GUI(GDB). It supports ...I am using Affinic Debugger GUI(GDB). It supports Windows/Mac OSX/Linux/Cygwin. Here is the link: http://www.affinic.com/?page_id=109 It is better than DDD. DDD is too old for me. This is newer design.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-88690314579127193672012-05-29T00:58:22.198-06:002012-05-29T00:58:22.198-06:00Qt Creator-on-Linux is certainly on par with Visua...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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-19920616701113894252012-05-29T00:58:21.571-06:002012-05-29T00:58:21.571-06:00Have you tried gdb -w with cygwin gdb.
It is supos...Have you tried gdb -w with cygwin gdb.<br />It is supossed to have a windows interface which works fairly well.<br /><br />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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-41595573035531927932012-05-29T00:58:20.499-06:002012-05-29T00:58:20.499-06:00As someone familiar with Visual Studio, I've l...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.<br /><br />It still isn't as good as the Visual Studio Debugger, unfortunately.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-20605995258883235442012-05-29T00:58:19.788-06:002012-05-29T00:58:19.788-06:00You don't mention whether you are using Window...You don't mention whether you are using Windows or UNIX.<br /><br />On UNIX systems, KDevelop is good but I use KDbg because it is easy to use and will also work with apps not developed in KDevelop.<br /><br />Eclipse is good on both platforms.<br /><br />On Windows, there is a great package called Wascana Desktop Developer 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.<br /><br />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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-57809245201400227142012-05-29T00:58:19.096-06:002012-05-29T00:58:19.096-06:00What can be stepped through is going to be limited...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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-79288046231767941792012-05-29T00:58:18.425-06:002012-05-29T00:58:18.425-06:00Similar comfortable to the eclipse gdb frontend is...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:<br /><br />GDB Emacs FrontendUserhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-72791076697756291872012-05-29T00:58:17.862-06:002012-05-29T00:58:17.862-06:00I used KDbg (only works under KDE).I used KDbg (only works under KDE).Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-77961304406349159252012-05-29T00:58:16.825-06:002012-05-29T00:58:16.825-06:00I've tried a couple of different guis for gdb ...I've tried a couple of different guis for gdb and have found DDD to be the better of them.<br />And while I can't comment on other, non-gdb offerings for linux I've used a number of other debuggers on other platforms.<br /><br />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.<br /><br />You also get a cli window in case there is something obscure that you want to do.<br /><br />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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-89955073887318845812012-05-29T00:58:15.070-06:002012-05-29T00:58:15.070-06:00Check out Nemiver C/C++ Debugger. It is easy to in...Check out Nemiver C/C++ Debugger. It is easy to install in Ubuntu (Developer Tools/Debugging).Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-73801691414434215552012-05-29T00:58:14.479-06:002012-05-29T00:58:14.479-06:00Check out the Eclipse CDT project. It is a plugin ...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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-16366839239527837432012-05-29T00:58:12.915-06:002012-05-29T00:58:12.915-06:00I use cgdb, simple and usefullI use cgdb, simple and usefullUserhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-84007666835359944752012-05-29T00:58:12.264-06:002012-05-29T00:58:12.264-06:00Qt Creator seems like good stuff. A colleague sho...Qt Creator seems like good stuff. A colleague showed me one way set it up for debugging:<br /><br /><br />Create a new project, "Import of Makefile-based Project".<br />Point it to your root project folder (it will index sources under it, and it is impressively fast).<br />Go to project settings and add a run configuration, then specify the executable you want to debug, and its arguments.<br />Qt Creator seems to insist on building your project before debugging it. If you don't want that, or don't use make, you can override the make command. I changed it to "true". :)<br /><br /><br />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.<br /><br />Keep in mind that I used it for less than and hour now, but I'm impressed so far.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-86628409423268253582012-05-29T00:58:11.217-06:002012-05-29T00:58:11.217-06:00I loathe the idea of Windows development, but the ...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.<br /><br />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.<br /><br />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.<br /><br />KDevelop followed typical KDE style and exposed EVERYTHING to the user. I also never had any luck debugging non KDevelop programs in KDevelop.<br /><br />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.<br /><br />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.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-5888849672664789652012-05-29T00:58:10.686-06:002012-05-29T00:58:10.686-06:00I use DDD a lot, and it's pretty powerful once...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.<br /><br />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.)Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-11829244041214754752012-05-29T00:58:09.972-06:002012-05-29T00:58:09.972-06:00gdb -tui works okay if you want something GUI-ish,...gdb -tui works okay if you want something GUI-ish, but still character based.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-2225220238426936452012-05-29T00:58:09.303-06:002012-05-29T00:58:09.303-06:00Eclipse CDT will provide an experience comparable ...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. <br /><br />If your 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.<br /><br />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.<br /><br />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.<br /><br />For more information about debugging using Eclipse CDT, you may want to check out these guides:<br /><br /><br />Interfacing with the CDT debugger, Part 2: Accessing gdb with the Eclipse CDT and MI<br />CDT Debug TutorialUserhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-30354287702467095332012-05-29T00:58:07.921-06:002012-05-29T00:58:07.921-06:00Although I will get massively downranked for this,...Although I will get massively downranked for this, you won't find anything 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. <br /><br />For a Linux alternative, try DDD if free software is your thing.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.com