Installing Clewn for Vim

In topic Miscellaneous :: Published Tuesday, March 18, 2008

Clewn is a NetBeans-based integration between Vim and GDB, that lets you perform the GDB debugging from within Vim.

  1. Grab the clewn and vimgdb source, linked to from http://clewn.sf.net

  2. Grab the latest vim-71 source archive and unpack

  3. Apply the vimgdb patch to vim-71, then run your favourite ./configure and make:

    ./configure --prefix=$HOME/local --with-x --with-features=huge --with-vim-name=vim71 --enable-xim --enable-fontset --enable-gdb --enable-pythoninterp
    
  4. Unpack the vimgdb runtime tarball in one of your runtime paths (:set runtimepath?), e.g ~/local/share/vim/vim71, start vim in the docs/ directory and run :helptags . to re-generate the Vim help files with the VimGdb documentation.

  5. Configure and make clewn:

    vimdir=$HOME/.vim ./configure --prefix=$HOME/local
    make && make install
    
  6. Done! Try it out with:

    clewn -ga '--args ./app-to-debug --commandline --parameters'
    

    More info in the documentation (:help clewn).


If this is the first time you comment on my site, your post might get held up in the moderation queue. Don't panic, I'll approve it as soon as possible!

Code (i.e. literal) blocks should be wrapped inside <PRE>.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Close
Powered by ShareThis