Search code examples
ruby-on-railsdebuggingrubymine

How to not step into gems when debugging with Rubymine


When debugging a rails application with Rubymine, I would like to step only through code in the application, skipping code in gems.

How can this be achieved?


Solution

  • Switch on the Ignore non-project sources option in the main settings:

    enter image description here

    Rubymine help has the following explanation of the feature:

    Select this check box to automatically skip the external libraries code and keep the focus on your own code. RubyMine will not stop at any non-project code no matter what stepping command is used. This option also prevents opening external files in the editor tabs while debugging.

    This option works for Ruby 2.x only; it is not supported for Ruby 1.8 and 1.9.