tags:

views:

199

answers:

4

Good day!

Are there any ways to debug python scripts not leaving vim in *nix systems (executing the script, setting up breakpoints, showing variables in watch-list, etc)? Thanks for feedback.

A: 

It sounds like you want to use VIM as a Python IDE.

A quick Google search found this and this example, with many more.

EDIT: Well, Ok, it seems likely you've searched more than I have.

I hope someone else has some ideas.

pavium
I've already read this article. The VimPDB mentioned there didn't work for me and gets broken each time i tried to use it.
varnie
+2  A: 
Pierre-Antoine LaFayette
theres also ipdb which is a little ipython like, so more user friendly.
michael
A: 

Hello. From what I know, there is one more option: You could use Eclipse + PyDev for project managing and Vim as an editor for Eclipse. That way You could use the best of both worlds.

Also, I haven't tried it, but You could try this script.

zeroDivisible
A: 

See the "Debugging" section in this blog post. It shows how to setup F7 to set breakpoints and Shift+F7 to remove breakpoints. It also uses pdb, as mentioned before. With a little modification, you can replace the use of pdb with ipdb (pdb using ipython), which is a lot nicer to use.

Walter