Skip to content

Conversation

@lieryan
Copy link

@lieryan lieryan commented Jun 1, 2017

Ubuntu 17.04 dropped all vim packages that are compiled with python2. This pull request adds support for vim compiled only with +python3, in a way that also allows setting breakpoints in python2 projects.

pudb uses different breakpoint files for different python versions. As currently implemented, the vim-pudb will set breakpoint for the python version that is installed when running python, so if python runs python2.7, vim-pudb will set breakpoint for pudb when running on python 2.7, but if python runs python3.5 from virtualenv, vim-pudb will set breakpoint for pudb when running on python 3.5.

Future improvements may be to have a setting to allow adding breakpoints to multiple versions at the same time (e.g. let g:pudb_python_versions=['python2.7', 'python3.5', '/home/me/virtualenv/pypy2.7']).

Lie Ryan and others added 5 commits June 1, 2017 17:46
This allows breakpoint to be set correctly when the python version that
vim is compiled into is not the same as the python version that pudb would
run as (e.g. when using virtualenv).
Drops support for vim with just +python
There was a race condition where set_breakpoint.py subprocess has not
finished saving breakpoint when UpdateBreakPoints() is called.
In some systems, only `python` is installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant