GUI for a GNU Debugger [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questionam pretty excited with the GNU Debugger and a GUI called Insight as it has saved me A LOT OF time. Thus I am posting this question/answer for other newbies out there like me having problems with their C code looking for a visual way to see what's going on.
I am working on Linux Mint (Ubuntu) btw.
I highly recommend ddd especially if you have complex data structures to visualize.
- Install Insight a GUI for GNU Project Debugger
- Compile your source
- Run the debugger
_
$ sudo apt-get install insight
$ gcc -g source.c -o application
$ insight
When developing for Windows using GCC. The best is to use Affinic Debugger GUI(GDB). it is newer design. it is similar and better than DDD. It also works for Linux and Mac
NetBeans has a nice front end for gdb. So does Eclipse.
Your are right that we load the executables, but when you are compiling you will need to compile with the debug flag (think is it -g in gcc, abit rusty on that ), that will insert the debugging information into the executable/obj files.
When developing for Windows using GCC (e.g. MinGW), I often found it painful to get a GUI for GDB working (And I have a disliking for Eclipse), but I'm really fond of the Code:Blocks IDE.
精彩评论