A
A
Alexander Kunin2014-11-14 19:52:29
Ruby on Rails
Alexander Kunin, 2014-11-14 19:52:29

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

1 answer(s)
R
Renat Ibragimov, 2014-11-15
@MpaK999

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 question

Ask a Question

731 491 924 answers to any question