Answer the question
In order to leave comments, you need to log in
How to step through the lines within the current file when debugging in RubyMine?
Everything happens in RubyMine (Mac OS 10.10)
For example, here is the code:
1. ...
2. ...
3. category.items.each do |item|
4. price = get_item_price(item)
5. ...
6. end
The breakpoint is on the first line.
If I press F7 (Step into) then on the third line I get to define_readers [association.rb:110] (ActiveRecord::Associations::Builder::Association)
If I press F8 (Step over) then I go straight to the end of the loop.
The question actually is - is it possible to step inside the cycle without setting the cursor (with a transition to the cursor) or a breakpoint inside the loop?
Answer the question
In order to leave comments, you need to log in
shift + F8 should help, but in general, here is a great cheat sheet - pivotallabs.com/debugging-in-rubymine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question