debugging from vim (gdb, xdb, idb)

115 views
Skip to first unread message

drososk...@gmail.com

unread,
Jun 22, 2008, 6:15:46 AM6/22/08
to vim_use
Dear vimers,
it would be a great relief if somehow I could manage to debug my C++
code using vim. In emacs there is a gdb mode. I googled for gdb and
vim but it was impossible to find something similar.

So, is it possible?

herm...@free.fr

unread,
Jun 22, 2008, 6:52:35 AM6/22/08
to vim use
Hello,

You should have a look at pyclewn on sourceforge.

Unfortunately, it only supports gdb -- and I do not have much time to hack in and see how I could you use it with dbx :(


--
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/

herm...@free.fr

unread,
Jun 22, 2008, 7:03:09 AM6/22/08
to vim use

herm...@free.fr wrote:

> Unfortunately, it only supports gdb -- and I do not have much time to
> hack in and see how I could you use it with dbx :(

"could use it"

drososk...@gmail.com

unread,
Jun 22, 2008, 7:33:05 AM6/22/08
to vim_use
Have you tried it ? Does it work?

On Jun 22, 2:03 pm, hermi...@free.fr wrote:

herm...@free.fr

unread,
Jun 22, 2008, 7:45:56 AM6/22/08
to vim use
----- drososk...@gmail.com a écrit :

> Have you tried it ? Does it work?

My compiler and debugger are not the GNU ones, but the ones from Solaris. I cannot use it (yet?).

AFAIK, clewn/pyclewn are the only attempts to integrate a debugger with Vim.

Ben Schmidt

unread,
Jun 23, 2008, 3:17:13 PM6/23/08
to vim...@googlegroups.com
herm...@free.fr wrote:
> ----- drososk...@gmail.com a écrit :
>
>> Have you tried it ? Does it work?
>
> My compiler and debugger are not the GNU ones, but the ones from
> Solaris. I cannot use it (yet?).
>
> AFAIK, clewn/pyclewn are the only attempts to integrate a debugger
> with Vim.

I use

http://www.vim.org/scripts/script.php?script_id=1929

for PHP debugging (which is what it's designed for). But it implements
the DBGp protocol, so may well work with other debuggers that support
that.

And, I don't believe I'm saying this...I wish I used it more often, as
it worked really nicely! I shouldn't really wish more bugs on myself,
but there you have it!

Of course, to make it really suit your workflow, a bunch of mappings, or
modifying the debugger default ones, is nice.

Grins,

Ben.


Reply all
Reply to author
Forward
0 new messages