Vim + debugger for Python?

135 views
Skip to first unread message

Shay

unread,
Oct 11, 2012, 1:49:03 PM10/11/12
to v...@vim.org
Python hobbyist.

After 39 years of doing things the hard way, I'm committed to trying the
easy way. For Python, I've been experimenting with WingIDE, but am having a
hard time getting used to the loss of editor functionality. I'm using the
WingIDE vim "personality", but WingIDE is not a dedicated text editor and
cannot approach vim in that respect.

I'm using the usual IDE-like plugins for vim, but want to try the modular
approach I've seen mentioned online. Vim + debugger + versioning + project
management >= IDE functionality. Don't know where to start. Anyone have
experience with this kind of thing?



--
View this message in context: http://vim.1045645.n5.nabble.com/Vim-debugger-for-Python-tp5711226.html
Sent from the Vim - General mailing list archive at Nabble.com.

Marc Weber

unread,
Oct 11, 2012, 1:55:58 PM10/11/12
to vim_use
debuggers are async - such they are faced async problems. I wrote
debugger implementations for PHP/Ruby using vim-addon-async.

github.com/MarcWeber/vim-addon-xdebug
github.com/MarcWeber/vim-addon-ruby-debug-ide

Other solutions exist:
clewn provides gdb support or such (am I right about this) built into
Vim ..
on www.vim.org there are some scripts which run an external script which
call into Vim.

Asking on the mailinglist is best you can do. Eventually the solution
is:
use emacs/pyide or something like this for debugging, and vim for coding
until you've found the perfect vim debugger for python.

Its not that eval: netbeans, Eclipse, IDEA, Emacs all ship with Vim like
keybindings. They are not perfect - but maybe just good enough.

I'm not doing that much python programming - that's why I may have
missed the perfect solution. Thus wait for more replies.

Marc Weber

David Stanek

unread,
Oct 11, 2012, 3:29:28 PM10/11/12
to vim...@googlegroups.com
On Thu, Oct 11, 2012 at 1:49 PM, Shay <alexa...@hotmail.com> wrote:

I'm using the usual IDE-like plugins for vim, but want to try the modular
approach I've seen mentioned online. Vim + debugger + versioning + project
management >= IDE functionality. Don't know where to start. Anyone have
experience with this kind of thing?


pdb is the standard python debugger and I typically use it from the command-line when I need to. I have used vimpdb[1] in the past with webapps, but I found it a little slow in some cases. I hear this is no longer true, but I have not had the time to check it out. I've also read good stuff about pyclewn[2]. It's on my list of things to try when I get some free time.

1. https://github.com/gotcha/vimpdb

John Beckett

unread,
Oct 11, 2012, 6:27:43 PM10/11/12
to vim...@googlegroups.com
Shay wrote:
> After 39 years of doing things the hard way, I'm committed to
> trying the easy way. For Python, I've been experimenting with
> WingIDE, but am having a hard time getting used to the loss
> of editor functionality. I'm using the WingIDE vim
> "personality", but WingIDE is not a dedicated text editor and
> cannot approach vim in that respect.

I am not a serious Python programmer, but I do enough to make a
purchase of the personal WingIDE worthwhile. I find it is
easiest to just edit in Vim, then if things go bad, run Wing to
find a bug. I switch back to Vim (Alt-Tab), edit, then switch
back to Wing, which reloads the source with no fuss, and carry
on. Not very clever, but it works. I also use 'ctags *.py' to
make a tags file every now and then.

John

Paul

unread,
Oct 12, 2012, 11:38:34 AM10/12/12
to vim...@googlegroups.com
On Thursday, 11 October, 2012 at 18:49:03 BST, Shay wrote:
>Don't know where to start. Anyone have experience with this kind of thing?

Give Vdebug a go: http://www.vim.org/scripts/script.php?script_id=4170

--

.

Shay

unread,
Oct 13, 2012, 10:23:20 AM10/13/12
to v...@vim.org
WingIDE + Vim seems like the way to go if I can't force myself to adapt to
WingIDE alone.

I'm using Windows for the first time in several years. Windows and WingIDE
feel like a multi-tools: they do everything well and nothing great. Windows
is a powerful operating system with an average window manager and WingIDE is
a powerful (I guess. Still learning.) IDE with an average text-editor (Vim
mode helps).

I could just go back to Linux + Vim after several days of setup to get
/most/ of my Thinkpad features working, but using MS Office at work for the
last six months has sold me on the power of simplicity and sane defaults.
I'm pretty sure I can drastically increase my productivity by learning to go
with the flow.

No more Slackware. No more thousand-line config files. No more all-weekend
installs. No more deciding I just can't go on if my window decorations
aren't perfect. No more playing video games on "insanity" setting. My
"1337-fever" is breaking. I could have been a real Python expert by now.

That being said, if someone gets around to packaging and documenting some
Super-Vim <http://www.youtube.com/watch?v=YhqsjUUHj6g> , I'm there.



--
View this message in context: http://vim.1045645.n5.nabble.com/Vim-debugger-for-Python-tp5711226p5711247.html

Marc Weber

unread,
Oct 13, 2012, 10:47:30 AM10/13/12
to vim_use
Excerpts from Shay's message of Sat Oct 13 16:23:20 +0200 2012:
> That being said, if someone gets around to packaging and documenting some
> Super-Vim <http://www.youtube.com/watch?v=YhqsjUUHj6g> , I'm there.
=> github.com/MarcWeber/vim-addon-manager let's you install vim packages
on windows easily, too.
Creating a "meta-distribution" is as much work as creating your own
plugin with such contents:

addon-info.json:
{
'dependencies': {
'name-of-plugin1': {},
'name-of-plugin2': {},
}
}

There are more ways to do it (janus and the like) - but I'd like to see
one tool for one job - and my tool for installing plugins is
vim-addon-manager for various reasons.

vim-addon-async provides python repl inside vim, but its based on
vim-addon-async which does not yet run on Windows. I think there is a
similar plugin requiring python only, check the "related work" section
in vim-addon-async.

Marc Weber
Reply all
Reply to author
Forward
0 new messages