We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d914d8 commit 759631eCopy full SHA for 759631e
lib/debug/thread_client.rb
@@ -857,7 +857,12 @@ def wait_next_action_
857
858
depth = @target_frames.first.frame_depth
859
860
- step_tp iter do
+ skip_line = false
861
+ step_tp iter do |event|
862
+ next if event == :line && skip_line
863
+ # skip line events until we see a return event
864
+ skip_line = !(event == :return || event == :b_return)
865
+
866
loc = caller_locations(2, 1).first
867
loc_path = loc.absolute_path || "!eval:#{loc.path}"
868
0 commit comments