Announcement

Collapse
No announcement yet.

How to use gdb to run a debian package?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to use gdb to run a debian package?

    Hey all,

    I'm at the point where I know just enough to be dangerous. I've been happily using kubuntu for several months now (gutsy). I have a little-guy-developer program which I use to do a good hunk of my daily work (fiction writing) and I've volunteered to beta the new version. I'd like to run it in gdb so that any bugs or crashes get documented with something useful. But I don't know the first thing about gdb, and my google searches turn up mostly instances where someone has generated gdb messages and is looking for info on those.

    So how do I set things up so that I run the program and use gdb to monitor it?

    Any help is greatly appreciated!

    Jensoko

    #2
    Re: How to use gdb to run a debian package?

    you need your code be compiled for debugging.
    in gcc and g++, for example, that means compiling with the -g option.
    you can then enter the following from command line:
    Code:
    osprompt> gdb <executable_filename>
    gdbprompt> run
    hth
    gnu/linux is not windoze

    Comment


      #3
      Re: How to use gdb to run a debian package?

      It does. Thanks very much!

      Comment

      Working...
      X