Discussion:
[pyclewn] Newbie - How to use pyclewn for debugging from vim - Debugging in VIM
Rajesh Khan
2014-10-26 02:14:28 UTC
Permalink
I have been working on linux for a couple of days. I am using gvim for
development. Now I need a debugger and I found out online that pyclewn
<http://pyclewn.sourceforge.net/install.html> is highly recommneded (since
it resembles Visual Studio in windows). I downloaded it and installed it.
Now my question is how do I use it ? I currently run a make file to
generate my executable. How do I integrate pyclewn with that executable ?

Here is what I have done so far in the following order

1 - :Pyclewn //Starts the program2 - :Cfile myfile . //myfile
was the output of makefile its the executable3 - :Cmapkeys
//Shows the mapping of the keys4 - :S-R //Run the program

This is what I get

Pyclewn version 1.11.py2 starting a new instance of gdb.

GNU gdb (GDB) Fedora 7.7.1-19.fc20Copyright (C) 2014 Free Software
Foundation, Inc.License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>This is free software: you are free
to change and redistribute it.There is NO WARRANTY, to the extent
permitted by law. Type "show copying"
and "show warranty" for details.This GDB was configured as
"x86_64-redhat-linux-gnu".Type "show configuration" for configuration
details.For bug reporting instructions, please
see:<http://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and
other documentation resources online
at:<http://www.gnu.org/software/gdb/documentation/>.For help, type
"help".Type "apropos word" to search for commands related to
"word".(gdb) file testReading symbols from test...done.(gdb) mapkeys
C-B : break "${fname}":${lnum} # set breakpoint at current line
C-D : down
C-E : clear "${fname}":${lnum} # clear breakpoint at current line
C-N : next
C-P : print ${text} # print value of selection at mouse position
C-U : up
C-X : print *${text} # print value referenced by word at
mouse position
C-Z : sigint # kill the inferior running program
S-A : info args
S-B : info breakpoints
S-C : continue
S-F : finish
S-L : info locals
S-Q : quit
S-R : run
S-S : step
S-W : where
S-X : foldvar ${lnum} # expand/collapse a watched
variable(gdb) runStarting program: /home/admin/Projects/Test/test
[Inferior 1 (process 8788) exited normally(gdb) quitQuitMissing
separate debuginfos, use: debuginfo-install glibc-2.18-16.fc20.x86_64
libgcc-4.8.3-7.fc20.x86_64 libstdc++-4.8.3-7.fc20.x86_64

I do not get an output or am not sure what to do next ? Any suggestions ?
Xavier de Gaye
2014-10-26 08:38:27 UTC
Permalink
...
I| do not get an output or am not sure what to do next ? Any suggestions ?
pyclewn is a vim front-end to gdb, so you need to understand how to use gdb.
There are many gdb tutorials on the net.
--
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

------------------------------------------------------------------------------
Loading...