MacOS RubyMine 2019.2.2: Run > Attach to process fails, and then kills the target process

Answered

Since updating to 2019.2.2, Trying to Run > Attach to process fails, and then kills the target process. Anyone else seeing this?

Console in RubyMine says:

Fast Debugger (ruby-debug-ide 0.8.0.beta6, debase 0.3.0.beta7, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported)

On the console with the running process in it, I see

Fast Debugger (ruby-debug-ide 0.8.0.beta6, debase 0.3.0.beta7, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported) listens on 0.0.0.0:60125

And then after the 20 second timeout (I've tried much longer timeouts from the RubyMine side, it doesn't make a difference), on the RubyMine console we see:

executed `expr (void) debase_rb_eval("require '/Users/myself/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ruby-debug-ide-0.8.0.beta6/bin/../lib/ruby-debug-ide/attach/debugger_loader'; load_debugger(['/Users/myself/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ruby-debug-ide-0.8.0.beta6/lib', '/Users/myself/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/debase-0.3.0.beta7/lib'], ['--key-value', '--step-over-in-blocks', '--disable-int-handler', '--evaluation-timeout', '20', '--evaluation-control', '--time-limit', '100', '--memory-limit', '0', '--rubymine-protocol-extensions', '--port', '60125', '--host', '0.0.0.0', '--dispatcher-port', '60126', '--attach-mode'])")` command inside lldb.
backtraces for threads:

And then a tread dump.

Back in the process's console, I get:

Killed: 9

3 comments
Comment actions Permalink

Hello Zac,

these problems seem to be known ones, please check https://youtrack.jetbrains.com/issue/RUBY-24797 and https://youtrack.jetbrains.com/issue/RUBY-22070
We plan to fix them in 2019.3 but still please follow them for the updates.

0
Comment actions Permalink

Thanks for the report Zac, upvoted this issue!


I have hit this same blocker in my process ... which occasionally have need to attach to background running process to view states of data.

It looks like the the attach call to any process works fine, but it time out waiting for a signal to be returned by the process, which I was able to supply before by hitting return or any key on the console window that's running the process.

Olga Kuvardina are there any work around currently for RubyMine?


- Vinny Ly

 

1
Comment actions Permalink

@Vinny,

no, there's no workaround but we're working on these issues, one of them is already fixed (the fix will be available in 2019.3 Beta) 

0

Please sign in to leave a comment.