Find the answer to your Linux question:
Results 1 to 3 of 3
I've been...trying to debug with gdb, but this one line-at-a-time thing is frustrating! Is there a way I can do a live debugging session while in Vim? Thanks!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942

    Debugging with Vim


    I've been...trying to debug with gdb, but this one line-at-a-time thing is frustrating! Is there a way I can do a live debugging session while in Vim?

    Thanks!
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  2. #2
    Just Joined!
    Join Date
    Apr 2006
    Posts
    5
    Quote Originally Posted by Javasnob
    I've been...trying to debug with gdb, but this one line-at-a-time thing is frustrating! Is there a way I can do a live debugging session while in Vim?
    Thanks!
    Shure. Take a look at vim.org page, there are some plugins, which can do what you want.

  3. #3
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    Well, it could be frustrating....

    But gdb has much more than line-at-line features. Try the break command to set a breakpoint, e.g. break my_function
    Then you can type "run" and your program will be stopped at that function. Moreover, step 20 will execute 20 lines insted executing only one....

    gdb is powerful... and dificult... maybe you want to try ddd (gdb front end)?

    Best regards

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •