How to allow the ruby ​​/ rails debugger to only go to application codes

When creating Rails and shen using debugger often happens that step leads to library code, is there a way to limit it to just jumping into my application code? Thank you very much

+4
source share
1 answer

Instead of step use next .

In the Rails manual:

The difference between the next and the step is that the step stops at the next line of executed code, taking only one step, and then moves on to the next line without going down to the inside of the methods.

Assuming you set your breakpoint in the application code, next will not go down to the library code. He will remain "framed."

+2
source

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


All Articles