views:

259

answers:

6

Hi, am 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.

A: 
Radek
Is insight still being worked on? I thought RedHat dropped development.
nathan
There still seems to be project activity: http://sourceware.org/insight/news.php
Radek
+5  A: 
R Samuel Klatchko
A: 

NetBeans has a nice front end for gdb. So does Eclipse.

nathan
A: 

Might I ask how you guys are managing to get C source code loaded into your debuggers? This is new to me, I thought you had to only load executables?

Thanks

New
This is what is known as a symbolic debugger. You need to compile your code with debugging symbols (most compilers for Unix use the -g flag). This gives the debugger the information needed to know what line of your source code the current machine instruction corresponds to and use this to make it appear that you are debugging the source.
R Samuel Klatchko
A: 

Hi New,

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.

Stephen Lee
A: 

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.

S.C. Madsen