Can't debug jrails

When I try to debug a jruby based rails app, I get a dialog telling me I
need to install the ruby-debug-ide gem, which is not available on jruby.

Is it possible to debug jruby apps?

6 comments
Comment actions Permalink

Hello,

When I try to debug a jruby based rails app, I get a dialog telling me I

need to install the ruby-debug-ide gem, which is not available on jruby.


Is it possible to debug jruby apps?

Yes it it possible, RubyMine has bundled ruby-debug-ide gem and should install it automatically.
Please ensure you use the latest version of rubygems. Run sudo gem update --system to update rubygems

Hope this helps.

Oleg

0
Comment actions Permalink

Oleg,

I update my ruby gems, but still cannot install ruby-debug-ide. RubyMine
does ask me to install the gem, but does not give any feedback whethere
the gem was successfully installed or not.

cheers,
Charles


Oleg Shpynov wrote:

Hello,

When I try to debug a jruby based rails app, I get a dialog telling me Ineed to install the ruby-debug-ide gem, which is not available on jruby.
>
> Is it possible to debug jruby apps?
>

Yes it it possible, RubyMine has bundled ruby-debug-ide gem and should install it automatically.
Please ensure you use the latest version of rubygems. Run sudo gem update --system to update rubygems

Hope this helps.

Oleg

---
Original message URL: http://www.jetbrains.net/devnet/message/5238302#5238302

0
Comment actions Permalink

Oleg,

I updated my ruby gems as indicated, but still cannot install
ruby-debug-ide.

RubyMine does ask me to install the gem, but does not give any feedback
whether the gem was successfully installed or not.

cheers,
Charles


Oleg Shpynov wrote:

Hello,

When I try to debug a jruby based rails app, I get a dialog telling me Ineed to install the ruby-debug-ide gem, which is not available on jruby.
>
> Is it possible to debug jruby apps?
>

Yes it it possible, RubyMine has bundled ruby-debug-ide gem and should install it automatically.
Please ensure you use the latest version of rubygems. Run sudo gem update --system to update rubygems

Hope this helps.

Oleg

---
Original message URL: http://www.jetbrains.net/devnet/message/5238302#5238302

0
Comment actions Permalink

Hello,

RubyMine does ask me to install the gem, but does not give any feedback

whether the gem was successfully installed or not.

Does RubyMine shows progress bar "Installing gem ruby-debug-base-0.10.3.1-java.gem"? This progress bar should be shown after you opt yes to install missing gems for debug.
It seems that some internal error happened, could you please try one more time and attach file idea.log here? Logs are located in ~/.RubyMine10/system/log

Regards,
Oleg

0
Comment actions Permalink

Oleg,

It does not show the dialog, and this exception is from the logs:




2009-05-20 13:17:06,475 ERROR -
com.intellij.ide.IdeEventQueue - Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(538,63),absolute(538,88),button=1,modifiers=Button1,clickCount=1]
on frame0
java.lang.NullPointerException
at org.jetbrains.plugins.ruby.gem.gem.GemRunner.a(GemRunner.java:86)
at org.jetbrains.plugins.ruby.gem.gem.GemRunner.install(GemRunner.java:4)
at org.jetbrains.plugins.ruby.gem.gem.GemRunner.install(GemRunner.java:117)
at
org.jetbrains.plugins.ruby.gem.GemInstallUtil.installDebugSupport(GemInstallUtil.java:17)
at
org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.b(RubyAbstractCommandLineState.java:77)
at
org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createDefaultCommandLine(RubyAbstractCommandLineState.java:4)
at
org.jetbrains.plugins.ruby.rails.run.configuration.server.RailsServerRunCommandLineState.createRunCommandLine(RailsServerRunCommandLineState.java:4)
at
org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createCommandLineAndProcessHandler(RubyAbstractCommandLineState.java:22)
at
org.jetbrains.plugins.ruby.rails.run.configuration.server.RailsServerRunCommandLineState.createCommandLineAndProcessHandler(RailsServerRunCommandLineState.java:13)
at
org.jetbrains.plugins.ruby.ruby.debugger.RubyDebugRunner.doExecute(RubyDebugRunner.java:7)
at
com.intellij.execution.runners.GenericProgramRunner$1.run(GenericProgramRunner.java:79)
at
com.intellij.execution.impl.ExecutionManagerImpl$1.run(ExecutionManagerImpl.java:109)
at
com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:118)
at
com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:103)
at
com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:54)
at
com.intellij.execution.ExecutorRegistryImpl$ExecutorAction.executeConfiguration(ExecutorRegistryImpl.java:201)
at
com.intellij.execution.ExecutorRegistryImpl$ExecutorAction.actionPerformed(ExecutorRegistryImpl.java:176)
at
com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:68)
at
com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:64)
at
com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:127)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:53)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:140)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:129)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2009-05-20 13:17:06,476 ERROR -
com.intellij.ide.IdeEventQueue - JetBrains RubyMine 1.0.5 Build #907
2009-05-20 13:17:06,476 ERROR -
com.intellij.ide.IdeEventQueue - JDK: 1.6.0_13
2009-05-20 13:17:06,476 ERROR -
com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM
2009-05-20 13:17:06,476 ERROR -
com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2009-05-20 13:17:06,476 ERROR -
com.intellij.ide.IdeEventQueue - OS: Linux
2009-05-20 13:17:06,476 ERROR -
com.intellij.ide.IdeEventQueue - Last Action: Debug


Oleg Shpynov wrote:

Hello,

RubyMine does ask me to install the gem, but does not give any feedback
> whether the gem was successfully installed or not.

Does RubyMine shows progress bar "Installing gem ruby-debug-base-0.10.3.1-java.gem"? This progress bar should be shown after you opt yes to install missing gems for debug.
It seems that some internal error happened, could you please try one more time and attach file idea.log here? Logs are located in ~/.RubyMine10/system/log

Regards,
Oleg

---
Original message URL: http://www.jetbrains.net/devnet/message/5238477#5238477

0
Comment actions Permalink

Thanks a lot for the issue, will be fixed in coming 1.1 version.
Filled an issue: http://www.jetbrains.net/jira/browse/RUBY-4088

Regards,
Oleg

0

Please sign in to leave a comment.