Unable to stop debugger

Unable to stop debugger. Latest available ruby plugin.. IDEA 8.0.0.
i cannot stop server neither in "run" mode nor in "debug". It just waits 4ever... only kill -9 helps

14 comments
Comment actions Permalink

Same here.
What I noticed is that if you press the Resume (F9) button (after having pressed Stop) , it goes to the next breakpoint - pressing Resume a second time then causes the debugger to stop.
Sounds like a bug to me.

-vincent.

0
Comment actions Permalink

Hello,
It seems that it`s a problem of ruby-debug itself, but we`ll investigate more on this problem.

Thanks,
Oleg

0
Comment actions Permalink

This still seems to be the case.  On Ubuntu 10.04, every time I start a debug session, it creates a new ruby process (as seen in the System Monitor); clicking the "stop" button in the debugger does not kill the ruby process; I can't even kill them from the System Monitor. I'm using RubyMine 3.2.4.

Has there been any progress made with this problem?

Thank you.

0
Comment actions Permalink

Hi djprog,
We fixed "stop" button behaviour, please try RubyMine 4.0 EAP (http://blog.jetbrains.com/ruby/2011/10/rubymine-4-0-early-access-is-open/)

0
Comment actions Permalink

Just tried it, and it's completely stopping the debugger (and of course the ruby process that was running in the debugger).  Well done!

I am getting this error message, tho, when I bring up RubyMine:

External file sync may be slow: File watcher is not executable: /home/jenko/Ruby/RubyMine-4.0-EAP/bin/fsnotifier64

Is there something I can do to remedy this on my end?  Never got this msg w/3.2.4

Thank you!

0
Comment actions Permalink

Due to packaging error fsnotifier64 was packed without execution bit. You can fix it easily via chmod +x /home/jenko/Ruby/RubyMine-4.0-EAP/bin/fsnotifier64 as a workaround. This problem is already fixed and fix will be available in the next EAP version.

0
Comment actions Permalink

That did it, thanks!

0
Comment actions Permalink

This problem is happening in the 4.5.1 release on OSX Mountain Lion.  In fact, you can't stop debug or non-debug Rails instances in RubyMine.  The non-debug shows the "kill" option which doesn't work either.  It appears as though this is related to OSX Mountain Lion as 4.1.3 doesn't work correctly either.

0
Comment actions Permalink

Ryan, I was unable to reproduce this problem on ML. What webserver are you using? Could you please attach your idea.log?

0
Comment actions Permalink

By default RubyMine launches Mongrel because I have that gem installed.  Also, I have attached my log file.



Attachment(s):
idea.log.zip
0
Comment actions Permalink

Looks like it's ML specific problem, you can take a look at following gist for possible ways to resolve it.

0
Comment actions Permalink

My issue isn't the warning about the DYLD path.  I don't think that has anything to do with not being able to stop a process that I launched from RubyMine.

0
Comment actions Permalink

Sorry, forgot to mention, this line comes from the log file exactly after trying to kill process. We'll try to add some workaround for this case

0
Comment actions Permalink

Thanks.  I went and looked at the log file again and I see this exception stack trace when I try to stop a process.  So, it does look like it is related to the DYLD path.  FYI, I have set this in /etc/launchd.conf.

java.lang.IllegalStateException: error:dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid

 at com.intellij.execution.process.UnixProcessManager.processPSOutput(UnixProcessManager.java:183)
 at com.intellij.execution.process.UnixProcessManager.processPSOutput(UnixProcessManager.java:157)
 at com.intellij.execution.process.UnixProcessManager.sendSignalToProcessTree(UnixProcessManager.java:113)
 at com.intellij.execution.process.UnixProcessManager.sendSigKillToProcessTree(UnixProcessManager.java:95)
 at com.intellij.execution.process.impl.OSProcessManagerImpl.killProcessTree(OSProcessManagerImpl.java:54)
 at com.intellij.execution.process.OSProcessHandler.killProcessTree(OSProcessHandler.java:75)
 at com.intellij.execution.process.OSProcessHandler.doDestroyProcess(OSProcessHandler.java:61)
 at com.intellij.execution.process.KillableColoredProcessHandler.doDestroyProcess(KillableColoredProcessHandler.java:51)
 at com.intellij.execution.process.BaseOSProcessHandler.destroyProcessImpl(BaseOSProcessHandler.java:149)
 at com.intellij.execution.process.ProcessHandler$1.run(ProcessHandler.java:106)
 at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:225)
 at com.intellij.execution.process.ProcessHandler.destroyProcess(ProcessHandler.java:102)
 at com.intellij.execution.actions.StopAction.a(StopAction.java:107)
 at com.intellij.execution.actions.StopAction.actionPerformed(StopAction.java:79)
 at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:170)
 at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:134)
 at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:311)
 at java.awt.Component.processEvent(Component.java:6140)
 at java.awt.Container.processEvent(Container.java:2083)
 at java.awt.Component.dispatchEventImpl(Component.java:4737)
 at java.awt.Container.dispatchEventImpl(Container.java:2141)
 at java.awt.Component.dispatchEvent(Component.java:4565)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
 at java.awt.Container.dispatchEventImpl(Container.java:2127)
 at java.awt.Window.dispatchEventImpl(Window.java:2482)
 at java.awt.Component.dispatchEvent(Component.java:4565)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
 at java.awt.EventQueue.access$000(EventQueue.java:85)
 at java.awt.EventQueue$1.run(EventQueue.java:643)
 at java.awt.EventQueue$1.run(EventQueue.java:641)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
 at java.awt.EventQueue$2.run(EventQueue.java:657)
 at java.awt.EventQueue$2.run(EventQueue.java:655)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:719)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:540)
 at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:421)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:379)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

0

Please sign in to leave a comment.