4 ms·
And today I learned about the existence of cGDB (a curses frontend for GDB, http://cgdb.github.com/ http://cgdb.github.com/ ). It seems very nice and I agree wi
by gioele 14y ago
And today I learned about the existence of cGDB (a curses frontend for GDB, http://cgdb.github.com/ http://cgdb.github.com/ ). It seems very nice and I agree with what is said in one slide of the Valve talk:
«* gdb: debugging from 1970
* cgdb: debugging from 2000»
- gioele 14y agoHN discussion on cgdb: https://news.ycombinator.com/item?id=5492376 https://news.ycombinator.com/item?id=5492376
- deleted 14y ago[deleted]
- wladimir 14y agocgdb looks promising. I really, really liked the Turbo Debugger in the 90's. No debugger has offered me the same experience since. It was fast, the text-based windowed interface allowed efficiently jumping to assembly as well as to the source, view registers, editable hex dumps of memory, view watchpoints etc. gdb is super-powerful but was a bit of a setback interface-wise because everything has to be done on a plain command line. And the GUI-based wrappers around it don't appeal to me much (don't know why, the ones I tried felt somewhat clunky).
- pjmlp 14y agoI rather use DDD. http://www.gnu.org/software/ddd/ http://www.gnu.org/software/ddd/ But then again, I am an IDE kind of guy.
- jandrese 14y agoI want to like DDD, but it has never been stable for me. Annoying it has a tendency to take down my Window Manager or even X.
- ysangkok 14y agoIf you can crash X like that, it's obviously an X bug. Imagine if I could crash your HTTP server remotely. Seriously, DDD is pretty stable. People don't like it because it doesn't use Gtk+ or Qt. And the people who use it even if it looks ugly aren't the kind of people who would talk about it, they just use it.
- narrator 14y agoEclipse on Linux has great C programming support including interactive debugging using the CDT (C development toolkit) plugin. I used it to interactively debug operating system code running in a virtual machine on my Linux box recently and it worked great.
- cabernal 14y agoYou might be interested in the Eclispe Linux Tools project[0], which integrates a lot of popular Linux profiling and debugging tools with Eclipse. [0]http://www.eclipse.org/linuxtools/ http://www.eclipse.org/linuxtools/
- emillon 14y agoThere's also gdbtui which is built-in (gdb -tui or "layout next" when in a gdb session) and not too bad to at least view the code and type commands at the same time.
- noselasd 14y agoAnd in the case you don't have cgdb around there's gdb --tui (sometimes invoked by running gdbtui as well), which at least beats plain gdb imo.
- clhodapp 14y agoYou can switch to this mode at any time with either the ^x-a shortcut or the command "layout src" on the gdb prompt.
- comex 14y agowhich is funny, because I long for plain gdb on Windows - not that gdb is so great, but on Windows if you want command oriented and thus scriptable, you're stuck with WinDbg, which is not as smart as gdb and has much worse syntax.