Skip to content

Commit 3cf3f70

Browse files
committed
debugger should report that it's listening on port when it's actually listening
Otherwise we have a race between debugger and RubyMine and sometime RubyMine fails to start debugging session (http://youtrack.jetbrains.com/issue/RUBY-14490)
1 parent afb9bb2 commit 3cf3f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug-ide.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def start_control(host, port)
107107
host ||= '127.0.0.1'
108108
gem_name = (defined?(JRUBY_VERSION) || RUBY_VERSION < '1.9.0') ? 'ruby-debug-base' :
109109
RUBY_VERSION < '2.0.0' ? 'ruby-debug-base19x' : 'debase'
110-
$stderr.printf "Fast Debugger (ruby-debug-ide #{IDE_VERSION}, #{gem_name} #{VERSION}) listens on #{host}:#{port}\n"
111110
server = TCPServer.new(host, port)
111+
$stderr.printf "Fast Debugger (ruby-debug-ide #{IDE_VERSION}, #{gem_name} #{VERSION}) listens on #{host}:#{port}\n"
112112
while (session = server.accept)
113113
$stderr.puts "Connected from #{session.peeraddr[2]}" if Debugger.cli_debug
114114
dispatcher = ENV['IDE_PROCESS_DISPATCHER']

0 commit comments

Comments
 (0)