We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94c9ccb commit 2059d4aCopy full SHA for 2059d4a
lib/debug/thread_client.rb
@@ -869,17 +869,14 @@ def wait_next_action_
869
skip_line = false
870
step_tp iter do |event|
871
next if event == :line && skip_line
872
+ # skip line events until we see a return event
873
+ skip_line = !(event == :return || event == :b_return)
874
875
loc = caller_locations(2, 1).first
876
loc_path = loc.absolute_path || "!eval:#{loc.path}"
877
- frame_depth = DEBUGGER__.frame_depth - 3
-
878
- # If we're at a deeper stack depth, we can skip line events until there's a return event.
879
- skip_line = event == :line && frame_depth > depth
880
881
# same stack depth
882
- (frame_depth <= depth) ||
+ (DEBUGGER__.frame_depth - 3 <= depth) ||
883
884
# different frame
885
(next_line && loc_path == path &&
0 commit comments