We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dadf48a commit c604658Copy full SHA for c604658
autoload/pymode/breakpoint.vim
@@ -11,7 +11,7 @@ fun! pymode#breakpoint#init() "{{{
11
12
from imp import find_module
13
14
-for module in ('wdb', 'pudb', 'ipdb'):
+for module in ('wdb', 'pudb', 'ipdb', 'pdb'):
15
try:
16
find_module(module)
17
vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"' % (module, module))
@@ -25,6 +25,10 @@ EOF
25
endfunction "}}}
26
27
fun! pymode#breakpoint#operate(lnum) "{{{
28
+ if strlen(g:pymode_breakpoint_cmd) == 0
29
+ echoerr("g:pymode_breakpoint_cmd is empty")
30
+ return
31
+ endif
32
let line = getline(a:lnum)
33
if strridx(line, g:pymode_breakpoint_cmd) != -1
34
normal dd
0 commit comments