Debugging on Linux/g++

For all coding issues - MODers and programmers, HTML and more.

Moderators: Jeff250, fliptw

Post Reply
User avatar
Iceman
DBB Habitual Type Killer
DBB Habitual Type Killer
Posts: 4929
Joined: Thu Apr 20, 2000 2:01 am
Location: Huntsville, AL. USA
Contact:

Debugging on Linux/g++

Post by Iceman »

Just moved to Fedora Core 1 ... I am porting my old OpenGL code and have had good success so far. Problem is that the gdb debugger sux0rz wrt the M$ Dev Studio debugger.

<font color="yellow"><strong>Anyone know of an industrial strength debugger for Fedora/g++ ? I don't believe Kdevelop is an option at this point ...</strong></font>
Horizon
DBB Ace
DBB Ace
Posts: 405
Joined: Sun Nov 08, 1998 3:01 am
Location: Saskatoon, SK, Canada

Post by Horizon »

You could try DDD. It's just a frontend to gdb, but it has visual breakpointing and step functionality, plus other cool features (it's visual). It's as close to the MS debugger as I've ever seen (on Linux/BSD).

Also, make sure to compile with -g so debugging information gets left in the object files.

Horizon
User avatar
MehYam
DBB Head Flapper
DBB Head Flapper
Posts: 2184
Joined: Thu Nov 05, 1998 12:01 pm
Location: Mountain View, CA, USA
Contact:

Post by MehYam »

MS Dev STuddio debgger is teh r0ock.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Except that it doesn't work on Linux. Image

I hate gdb as well. I solved my problem by not developing for Linux, though that probably isn't an option for you. Image
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

non-graphical debuging sucks period.
User avatar
Marix
DBB Cadet
DBB Cadet
Posts: 6
Joined: Sun Apr 04, 2004 3:27 pm

Post by Marix »

Maybe a dumb question, but:
Why is KDevelop not an option?
User avatar
Iceman
DBB Habitual Type Killer
DBB Habitual Type Killer
Posts: 4929
Joined: Thu Apr 20, 2000 2:01 am
Location: Huntsville, AL. USA
Contact:

Post by Iceman »

Marix wrote:Maybe a dumb question, but:
Why is KDevelop not an option?
Lack of documentation ...
Creation of a large file hierarchy mess ...
Crashes while using ...
User avatar
Marix
DBB Cadet
DBB Cadet
Posts: 6
Joined: Sun Apr 04, 2004 3:27 pm

Post by Marix »

Actually kdevelop3 is documented pretty well. and if you create a custom-project you will not have all those gnu-makeutils-files created.
Post Reply