Skip to content

Commit

Permalink
Revert "skip most line events when stepping over code"
Browse files Browse the repository at this point in the history
This reverts commit 759631e.
  • Loading branch information
ko1 committed Oct 26, 2022
1 parent 2059d4a commit d911770
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/debug/thread_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -866,12 +866,7 @@ def wait_next_action_

depth = @target_frames.first.frame_depth

skip_line = false
step_tp iter do |event|
next if event == :line && skip_line
# skip line events until we see a return event
skip_line = !(event == :return || event == :b_return)

step_tp iter do
loc = caller_locations(2, 1).first
loc_path = loc.absolute_path || "!eval:#{loc.path}"

Expand Down

0 comments on commit d911770

Please sign in to comment.