Debugging on Linux?

This is a discussion on Debugging on Linux? within the Linux Programming forums, part of the Platform Specific Boards category; Anyone have a good walk through or howto for a linux debugger? I'm used to C# / MS type IDE's ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    7

    Debugging on Linux?

    Anyone have a good walk through or howto for a linux debugger?

    I'm used to C# / MS type IDE's that let me step through code and have various watch tools for my objects. Does anything like that exist for the Linux Environment?

    Thanks.

  2. #2
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    I've never used it, but this looks promising.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    7
    Just curious, when you 'debug' what do you do?

    Just write values to the screen and see what you have?

  4. #4
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Usually. I use the VC++ debugger if it's too complex for that though.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    > Just curious, when you 'debug' what do you do?
    Use a debugger - the previous poster already showed you that.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    ♥Sexy Coding Hunk♥ CartoonLarry's Avatar
    Join Date
    Dec 2003
    Location
    Michigan
    Posts
    50
    Quote Originally Posted by trlpkguy
    Anyone have a good walk through or howto for a linux debugger?

    I'm used to C# / MS type IDE's that let me step through code and have various watch tools for my objects. Does anything like that exist for the Linux Environment?

    Thanks.
    You could try the following:

    Eclipse (with CDT plugin)
    http://www.linuxdevices.com/articles/AT6046208714.html

    kdevelop
    http://developer.kde.org/documentati...8lev1sec6.html

    I have worked in both and they were an easy transition from MS IDE for me.

    Hope this helps.

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    7
    You're all answers when it comes to help huh?


    RE:

    > Just curious, when you 'debug' what do you do?
    Use a debugger - the previous poster already showed you that.

  8. #8
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    What do you want from us?

    Help with searching the web?

    Help with reading manual pages?

    Tell me, how did you figure out how to use the visual studio debugger?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  9. #9
    Registered User
    Join Date
    Oct 2006
    Posts
    7
    Learned the VS debugger because it is built into the IDE.

    Thus far all my searches for Linux C++ IDE returned KDevelop results.

    That's fine if I wish to program for KDE Environments, but what I'm really looking for is a command line application debugger...

  10. #10
    ♥Sexy Coding Hunk♥ CartoonLarry's Avatar
    Join Date
    Dec 2003
    Location
    Michigan
    Posts
    50
    Quote Originally Posted by trlpkguy
    but what I'm really looking for is a command line application debugger...
    http://www.gnu.org/software/gdb/

    http://valgrind.org/info/tools.html

  11. #11
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Quote Originally Posted by trlpkguy
    Thus far all my searches for Linux C++ IDE returned KDevelop results.
    and QT Designer and glade and adjunta and eclipse [ sic ], code warrior, among others.

    Quote Originally Posted by trlpkguy
    That's fine if I wish to program for KDE Environments, but what I'm really looking for is a command line application debugger...
    all open source tools are command line. the gui tools are wrappers around the command line tools, and only have about 75% the functionality of the cli tool.

    for gui debuggers there are several, both integrated into ide and stand alone.
    they all are just a wrapper for gdb [ Gnu DeBugger ]

    the cd burning gui tools are wrappers for cdrecord and makeisofs [creating disk images needs the latter ]
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. WinGDB - Linux debugging under Visual Studio
    By WinGDB in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 07-01-2009, 03:05 PM
  3. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 04:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21