Patches: Browse | Submit New | Admin

[#27889] Ability to start remote debugging on random ports and to query those ports

Date:
2010-02-25 11:43
Priority:
3
Submitted By:
Hongli Lai (hongli)
Assigned To:
Rocky Bernstein (rockyb)
Category:
None
State:
Closed
Summary:
Ability to start remote debugging on random ports and to query those ports

Detailed description
This patch allows one to start remote debugging on random available TCP ports and to query the ports that the OS has
chosen. I need it in some server software where there are multiple (constantly changing number of) background processes
with no console.

Usage is something like this:

   Debugger.start_remote('127.0.0.1', [0, 0])
   write_to_log_file("#{Debugger.cmd_port}, #{Debugger.ctrl_port}")

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-10-14 15:30
Sender: Rocky Bernstein

I have just put out release candidate 2. Please check that it
does what you want. Unless I hear otherwise, I'll doing a final
release around Oct 27th.
Date: 2010-09-13 21:49
Sender: Rocky Bernstein

Some from Fedora recently reported problems. See
http://rubyforge.org/tracker/index.php?func=detail&aid=28560&
amp;group_id=1900&atid=7436

I'll be looking at that relatively soon and possibly both of
these will be bundled together.
Date: 2010-09-13 20:44
Sender: Hongli Lai

Hey Rocky. Could you release a new version that includes
this patch? Phusion Passenger requires this feature for
debugging and some of our users are dying to try it.
Date: 2010-03-21 23:10
Sender: Rocky Bernstein

Applied in SVN 930. Thanks!

Attached Files:

Name Description Download
0001-Add-the-ability-to-query-the-command-and-control-por.patch Download

Changes:

Field Old Value Date By
close_date2010-10-14 15:302010-10-14 15:30rockyb
close_date2010-09-13 21:492010-09-13 21:49rockyb
close_date2010-09-13 20:442010-09-13 20:44hongli
assigned_tonone2010-03-21 23:11rockyb
close_date2010-03-21 23:112010-03-21 23:11rockyb
status_idOpen2010-03-21 23:11rockyb
resolution_idNone2010-03-21 23:11rockyb
File Added4875: 0001-Add-the-ability-to-query-the-command-and-control-por.patch2010-02-25 11:44hongli