Skip to content

Commit

Permalink
move fix from 81888fb from the Kernel#debugger hook to the current Sp…
Browse files Browse the repository at this point in the history
…orkDebugger strategy.
  • Loading branch information
timcharper committed Sep 25, 2009
1 parent 72c5863 commit c78bf32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/spork/ext/ruby-debug.rb
Expand Up @@ -62,8 +62,7 @@ def install_hook
Kernel.class_eval do
alias :debugger_without_spork_hook :debugger
def debugger(steps = 1)
SporkDebugger.instance.prepare_debugger unless @debugger_invoked
@debugger_invoked = true
SporkDebugger.instance.prepare_debugger
debugger_without_spork_hook
end
end
Expand Down Expand Up @@ -109,6 +108,8 @@ def initialize(connection_request_port)
end

def prepare_debugger
return if @debugger_prepared
@debugger_prepared = true
port, cport = start_rdebug_server
signal_spork_server_to_connect_to_rdebug_server(port)
wait_for_connection
Expand Down

0 comments on commit c78bf32

Please sign in to comment.