add the below to ~/.vimrc
:
Plugin 'https://github.com/brookhong/DBGPavim.git'
" Debug Python via DBGPavim in VIM
also, using :PluginInstall
to install plugin DBGPavim
.
add the below to config the monitor port of debugger in ~/.vimrc
:
let g:dbgPavimPort = 9009
Just use this to download pydbgp:
(Linux)
sudo wget http://downloads.activestate.com/Komodo/releases/12.0.1/remotedebugging/Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64.tar.gz
(MacOS)
sudo wget http://downloads.activestate.com/Komodo/releases/12.0.1/remotedebugging/Komodo-PythonRemoteDebugging-12.0.1-91869-macosx.tar.gz
release the package:
(Linux)
tar -zxvf Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64.tar.gz && cd Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64 && pwd && ls -a
(MacOS)
tar -zxvf Komodo-PythonRemoteDebugging-12.0.1-91869-macosx.tar.gz && cd
Komodo-PythonRemoteDebugging-12.0.1-91869-macosx && pwd && ls -a
Move python debug file to the target library:
cp pydbgp pythonlib/
cp py3_dbgp python3lib/
And, add the pythonlib
or python3lib
to the environment variable, add the
code to ~/.zshrc
or ~/.bashrc
or ~/.profile
:
export PATH=$PATH:~/Komodo-PythonRemoteDebugging-12.0.1-91869-linux-x86_64/python3lib
Using F5
to enter debug status, F10
ensure the break point, :Dp
to enter
debugging.
But mission fell! Both on Linux(Debian) or MacOS.
F5
: enable monitor debug;
F6
: disable monitor debug;
F1
: open/close the helper window;
F2
: enter with step;
F3
: jump with step;
F4
: exit with step;
F5
: continue process until the next break point, exit the debugger status
while no next break point;
F9
: Bigger the size of the target window, or reset the display of window;
F11
: checkout all the value of the current variables, differ stack, differ
value;
F12
: watch out the value of the variable where the cursor is locate.