RubyMine 2023.3.4 is incredibly slow in debugging mode
Hi,
I recently upgraded to 2023.3.4 after I had some trouble getting the GitHub Copilot plugin working. After upgrading, the debugger has become incredibly slow to the point where it's practically useless. It takes too long to evaluate basic variables, it takes too long to step over methods, etc.
I've seen some posts from people with the same issue and some of them are reverting to older versions of RubyMine to fix this.
Is there a solution in the current version?
My info:
RubyMine 2023.3.4
Build #RM-233.14475.27, built on February 12, 2024
Subscription is active until June 22, 2024.
Runtime version: 17.0.10+1-b1087.17 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.5.0-25-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 3966M
Cores: 12
Registry:
debugger.watches.in.variables=false
Non-Bundled Plugins:
com.github.copilot (1.5.0.5148)
Current Desktop: ubuntu:GNOME
======================
Edit:
I just updated RubyMine to 2023.3.5, still same issue.
I should probably add more info here.
This is the command that's shown when I start the debugger:
/bin/bash -c "env RBENV_VERSION=2.7.8 /home/user/.rbenv/libexec/rbenv exec ruby /home/user/.rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-2.3.18/bin/rdebug-ide --key-value --step-over-in-blocks --disable-int-handler --evaluation-timeout 2400000 --evaluation-control --time-limit 2400000 --memory-limit 16000 --full-value-time-limit 20000 --full-value-memory-limit 0 --rubymine-protocol-extensions --port 40665 --host 0.0.0.0 --dispatcher-port 46057 -- /home/user/project/bin/rails server -b 0.0.0.0 -p 3000 -e development -b 'ssl://0.0.0.0:3000?key=localhost-certs/local-dev-key.pem&cert=localhost-certs/local-dev.pem'"
Fast Debugger (ruby-debug-ide 2.3.18, debase 2.3.13, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported, partial obtaining of instance variables supported) listens on 0.0.0.0:40665
This is the updated info from the “about” option in RubyMine:
RubyMine 2023.3.5
Build #RM-233.14808.14, built on March 8, 2024
Subscription is active until June 22, 2024.
Runtime version: 17.0.10+1-b1087.21 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.5.0-25-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 3966M
Cores: 12
Registry:
debugger.watches.in.variables=false
Non-Bundled Plugins:
com.github.copilot (1.5.0.5148)
Current Desktop: ubuntu:GNOME
======================================
Edit.
More info. This is the error I'm getting when I try to evaluate a variable in the IDE:
Could not evaluate: variable
Trying to send a command [frame 1; v inspect variable] to non-started or finished proxy (debuggee: RubyDebugTarget[baseDir: null, debuggedFile: null, port: 43161, remote: true, process: null, process alive: n/a])
请先登录再写评论。
Hello Mauricio,
At the moment, there're no known issues with similar symptoms. Judging by the error you faced, it seems that for some reason the debugger failed and it's worth checking idea.log (Help - Show log in). Would it be possible for you to submit a corresponding bug report on our tracker and attach it?
Hello Olga,
Thanks for getting back to me on this. I've got the contents of the idea.log file and will open a bug report on the tracker.
Best,
mc
edit: I have submitted a bug report → https://youtrack.jetbrains.com/issue/RUBY-32685/RubyMine-2023.3.5-times-out-inspecting-variables-incredibly-slow-after-upgrading-from-2022.X