Skip to content

Commit

Permalink
add existing control of file run
Browse files Browse the repository at this point in the history
  • Loading branch information
angal committed Dec 8, 2009
1 parent 6c511b9 commit 2581ebf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ext/ae-ruby-debug/ae-ruby-debug.rb
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def notify(_state)
# * undisp[lay][ nnn]
# delete one particular or all display expressions if no expression number given
# * del[ete][ nnn]
# delete some or all breakpoints (get the number using “break”)
# delete some or all breakpoints (get the number using break)
# * c[ont]
# run until program ends or hit breakpoint
# * r[un]
Expand Down Expand Up @@ -1412,7 +1412,14 @@ def on_debug(_event)
when StartDebugEvent
_filename = _event.file
_filename = @arcadia['pers']['run.file.last'] if _filename == "*LAST"
debug(_filename)
if File.exist?(_filename)
debug(_filename)
else
Arcadia.dialog(self,
'type'=>'ok',
'title'=>'File not exist',
'msg'=>"File #{_filename} not exist!")
end
when StepDebugEvent
if (_event.command == :quit_yes)
@rds.quit_confirm_request = true
Expand Down

0 comments on commit 2581ebf

Please sign in to comment.