Skip to content

Commit

Permalink
Fixes #131
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rodríguez committed Mar 29, 2015
1 parent 19d0ee5 commit c341131
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/byebug/attacher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ module Byebug
# events occur. Before entering byebug the init script is read.
#
def self.attach
return errmsg('Byebug already started. Ignoring `byebug` call.') if started?
unless started?
self.mode = :attached

self.mode = :attached

start
run_init_script
start
run_init_script
end

current_context.step_out(2, true)
end
Expand Down

0 comments on commit c341131

Please sign in to comment.