Are you saying that you start the jruby.exe, then switch over to NetBeans to 
attach the debugger to it, but then by the time NetBeans tries to connect to 
the spec process, NetBeans says it's gone? If so, I suspect that the spec did 
run too fast for you.

I recommend developing a faster reflex. Just kidding.

Instead, you want to start the debugger from the IDE itself. Make sure JRuby is 
the main project. On the Mac, it is ⌘-F5. I don't know what it is on Windows 
offhand, but "Debug" menu should have this option. When the dialog pops up, 
you'd want to pass all the arguments you need, keeping in mind that PWD would 
be jruby source directory. In your case:

spec\mspec\bin\mspec -T-X+C spec\ruby\core\filete st\identical_spec.rb

Good luck.

On Jan 21, 2011, at 5:34 PM, Miquel Oliete wrote:

> Hi there
> 
> I'm trying to contribute to JRuby projects fixing RubySpecs problems.
> I'm trying to debug the RubyFileTest class executing the spec file
> using the following sentence
> 
> bin\jruby.exe -J-Xrunjdwp:transport=dt_socket,server=y,su
> spend=y,address=4000 -J-Xdebug spec\mspec\bin\mspec -T-X+C
> spec\ruby\core\filete st\identical_spec.rb
> 
> I have breakpoints included in the java file and I'm trying to
> attach to the java process with a socket aatach using the port 4000
> and process starts and netbeans tells me that process has ended but it
> doesn't stop in any breakpoint.
> 
> Can you give me some light on this?
> 
> Thanks in advance
> 
> 
> 
>       Miquel 
> 
> -- 
> 
> Miquel Oliete
> 
> Homepage (http://www.miqueloliete.com) 
> Blog (http://blog.mob1970.org) 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to