Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle setting breakpoint on no file, as per #12

  • Loading branch information...
commit e00c8585b0e7f111b24db03b3df0d695d75003f6 1 parent 500fc3f
@joonty authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 plugin/python/vdebug/breakpoint.py
View
5 plugin/python/vdebug/breakpoint.py
@@ -104,7 +104,10 @@ def parse(self,ui,args):
if len(args) == 0:
""" Line breakpoint """
row = ui.get_current_row()
- file = ui.get_current_file()
+ try:
+ file = ui.get_current_file()
+ except vdebug.util.FilePathError:
+ raise BreakpointError, 'No file, cannot set breakpoint'
return LineBreakpoint(ui,file,row)
else:
arg_parts = args.split(' ')
Please sign in to comment.
Something went wrong with that request. Please try again.