Can't debug scripts from IntelliJ

Any ideas how can I debug my unit tests in IDEA 10? It executes the
following command:

“c:\applications\jetbrains\intellij idea 10.0\jre\jre\bin\java.exe”
-Xverify:none -da -Xmx500m -Xss1024k -cp
C:\Java\jruby-1.6.1\lib\jruby.jar -Djruby.base=C:\Java\jruby-1.6.1
-Djruby.home=C:\Java\jruby-1.6.1 -Djruby.lib=C:\Java\jruby-1.6.1\lib
-Djruby.shell=“cmd.exe” -Djruby.script=jruby.bat
-Djruby.reflection=true -Djruby.compile.mode=OFF
-Djruby.debug.fullTrace=true org.jruby.Main -X+O --debug -S
C:/Java/jruby-1.6.1/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.17.beta3/bin/rdebug-ide
–port 64445 –
C:/Projects/iris/trunk/shared/plugins/firetimes_model/test/models/time_entry_test.rb
-n test_find_automatic_chargecode_with_automatic_chargecode
Fast Debugger (ruby-debug-ide 0.4.17.beta3, ruby-debug-base 0.10.3.2)
listens on 127.0.0.1:64445

but then cannot connect to the process:

-Disconnected

Has anybody had any luck debugging JRuby from IDEA?

Cheers,
Behrang S.

Anyone?

Not sure if it is because you are using ruby plugin for IntelliJ, but
the debugger just works fine inside Rubymine with JRuby.

For a while, with latest JRuby, I remember I needed to disable Debugger
gem in gem file, but I this wont be necessary in the latest RM.

From: Ivan B. [email protected]
To: [email protected]
Sent: Friday, March 15, 2013 9:33 AM
Subject: [jruby-user] Re: Can’t debug scripts from IntelliJ

Anyone?


Posted via http://www.ruby-forum.com/.