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 2da50da commit 0c413a7Copy full SHA for 0c413a7
autoload/pymode/breakpoint.vim
@@ -11,10 +11,14 @@ fun! pymode#breakpoint#init() "{{{
11
12
from importlib.util import find_spec
13
14
-for module in ('wdb', 'pudb', 'ipdb', 'pdb'):
15
- if find_spec(module):
16
- vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"' % (module, module))
17
- break
+if sys.version_info >= (3, 7):
+ vim.command('let g:pymode_breakpoint_cmd = "breakpoint()"')
+
+else:
18
+ for module in ('wdb', 'pudb', 'ipdb', 'pdb'):
19
+ if find_spec(module):
20
+ vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"' % (module, module))
21
+ break
22
EOF
23
endif
24
0 commit comments