Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untitled #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/rdebug-ide
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ if ARGV.empty?
end

# save script name
Debugger::PROG_SCRIPT = ARGV.shift
script = ARGV.shift
Debugger::PROG_SCRIPT = (script =~ /script([\\\/])rails/ ? Dir.pwd + $1 : '') + script

# install interruption handler
trap('INT') { Debugger.interrupt_last }
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby-debug-ide.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def start_control(host, port)
return if @control_thread
@control_thread = DebugThread.new do
begin
$stderr.printf "Fast Debugger (ruby-debug-ide 0.4.9) listens on #{host}:#{port}\n"
# 127.0.0.1 seemingly works with all systems and with IPv6 as well.
# "localhost" and nil on have problems on some systems.
# "localhost" and nil have problems on some systems.
host ||= '127.0.0.1'
$stderr.printf "Fast Debugger (ruby-debug-ide19) listens on #{host}:#{port}\n"
server = TCPServer.new(host, port)
while (session = server.accept)
begin
Expand Down