Ruby debugging enters, not steps over

I am writing a Rails 4 application in Ruby 2 and I am using the debugger stone to debug my code.

Here is the current situation:

I place the debugger statement in my Rspec tests, run the tests in the shell, and the program terminates as expected. Wanting to go to the next line, I will enter n , but the debugger does enter the code, showing me the inner workings of libraries that I don't like.

So the problem is that the debug command n acts like s .

How can I solve this problem *?

* I do not want to set a breakpoint on the next line, and then continue , which will be very old, very fast.

+6
source share
1 answer

The debugger does not yet fully support Ruby 2.0 , and one of the problems is that the next one does not work correctly as a step . You will have to wait until the problem is fixed if it works correctly or use an alternative debugger such as Byebug .

+8
source

Source: https://habr.com/ru/post/948426/


All Articles