Skip to content

Commit

Permalink
skip most line events when stepping over code
Browse files Browse the repository at this point in the history
  • Loading branch information
WillHalto authored and ko1 committed Oct 26, 2022
1 parent 4d914d8 commit 759631e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/debug/thread_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,12 @@ def wait_next_action_

depth = @target_frames.first.frame_depth

step_tp iter do
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)

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

Expand Down

0 comments on commit 759631e

Please sign in to comment.