You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if such a feature is already present, I couldn't find it in the project.
Could I request an API method to stop the debugger once it's been loaded? I'm from the RubyMine team, and our use case for this is the following: the users would like to be able to launch their program and then later attach our debugger to it. Our debugger conflicts with the debug gem, however, so if the user project contains this gem (and Rails apps include it by default), then the attaching our debugger will lead to problems (mostly hanging, I think). The debug gem is loaded at the program start, so if we try to attach our debugger later, we cannot disable the debugger from debug, and so our debugger won't work; the only way to disable it is by setting the environment variable RUBY_DEBUG_ENABLE before launching the program, but that is up to the user only, not to RubyMine (if they launch their app in the terminal, not via an RM run configuration). So, is it or would it be possible to shut the debugger down completely during execution? Then we could call such a hypothetical stop method upon starting our debugger, and everything would work.
To be more precise, one of the incompatibilities is that our debugger hangs at the DEBUGGER__::SESSION@server thread, though there may be other issues as well.
The text was updated successfully, but these errors were encountered:
If the problem is activation by require, #797 should help once it's implemented.
Before that, I think asking users to add require: "debug/prelude" or require: false to gem "debug" can also work. Both of them will not activate the debugger and the former can still provide breakpoint methods and only load the debugger when they're hit.
@st0012 Thank you for your reply! Adding require: "debug/prelude" seems to help, and it's especially convenient that it's currently the default in Rails. I'll keep an eye out for #797, though I'm not sure what its current status is based on the comments.
Apologies if such a feature is already present, I couldn't find it in the project.
Could I request an API method to stop the debugger once it's been loaded? I'm from the RubyMine team, and our use case for this is the following: the users would like to be able to launch their program and then later attach our debugger to it. Our debugger conflicts with the
debug
gem, however, so if the user project contains this gem (and Rails apps include it by default), then the attaching our debugger will lead to problems (mostly hanging, I think). Thedebug
gem is loaded at the program start, so if we try to attach our debugger later, we cannot disable the debugger fromdebug
, and so our debugger won't work; the only way to disable it is by setting the environment variableRUBY_DEBUG_ENABLE
before launching the program, but that is up to the user only, not to RubyMine (if they launch their app in the terminal, not via an RM run configuration). So, is it or would it be possible to shut the debugger down completely during execution? Then we could call such a hypotheticalstop
method upon starting our debugger, and everything would work.To be more precise, one of the incompatibilities is that our debugger hangs at the
DEBUGGER__::SESSION@server
thread, though there may be other issues as well.The text was updated successfully, but these errors were encountered: