Tip #380: Using gvim as frontend for dbx
tip karma |
Rating 11/5, Viewed by 1087
|
created: |
|
December 2, 2002 5:51 |
|
complexity: |
|
basic |
author: |
|
Dirk Volkmar |
|
as of Vim: |
|
6.0 |
There is a easy, fast way to use gvim as somewhat like a frontend for the solaris dbx - debugger. Add the following to your .dbxrc:
alias sc=" gvim --remote +$vlineno $vfile"
when stop { gvim --remote +$vlineno $vfile ;}
Allways the debugger stops it shows you the current positon in the gvim. My gvim does'nt take the focus, I dont know why, but so I just can walk through the code.
The sc alias shows the current position and is helpful after loading the executable to show the start (we have'nt stopped at this point).
Unfortunately it doesn't work at the first stop after attaching to a process.
<<1,$ s/^M//g gets rid of control-Ms (windows carriage returns) |
Running the win32-version of Vim from cygwin >>
Additional Notes
|