diff --git a/lib/debug/thread_client.rb b/lib/debug/thread_client.rb index 259d69fcc..0e1fa42a1 100644 --- a/lib/debug/thread_client.rb +++ b/lib/debug/thread_client.rb @@ -350,6 +350,7 @@ def step_tp iter, events = [:line, :b_return, :return] next if tp.path.start_with?(__dir__) next if tp.path.start_with?('') next unless File.exist?(tp.path) if CONFIG[:skip_nosrc] + next if skip_internal_path?(tp.path) loc = caller_locations(1, 1).first next if skip_location?(loc) next if iter && (iter -= 1) > 0 @@ -369,6 +370,7 @@ def step_tp iter, events = [:line, :b_return, :return] next if tp.path.start_with?(__dir__) next if tp.path.start_with?('') next unless File.exist?(tp.path) if CONFIG[:skip_nosrc] + next if skip_internal_path?(tp.path) loc = caller_locations(1, 1).first next if skip_location?(loc) next if iter && (iter -= 1) > 0