Reputation: 555
I use Plugin 'klen/python-mode' in my vim, and work fine
but when I want add a break point and run code with python mode
, occurs unexpected error, the vim says [Pymode] code running ...
and vim is stops, then I must kill the process of vim
My config:
let g:pymode_breakpoint = 1
let g:pymode_rope = 1
let g:pymode_doc_bind = "<C-S-d>"
let ropevim_enable_shortcuts = 1
let g:pymode_breakpoint_bind = '<leader>k'
I use python 2.7.9
I want use breakpoints and run code with vim but this is damaged
Thank you very much! :D
Upvotes: 3
Views: 2005
Reputation: 5350
Use :!python3 % instead of using the default keybinding <leader>r
.
I am now able to put in breakpoints, and pdb works as expected. Also you can break out of an infinite loop or kill the process using Cntrl+C.
Upvotes: 0