From 7b7259d7159bc7144c385c1fd6a13e16dd196001 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Thu, 22 Dec 2022 20:50:37 +0900 Subject: [PATCH] skip file For the `` files does not have a file and `absolute_path` is nil, so it is assumed as eval'ed code and `skip_location?` add prefix `!eval:` to the path name. So it also cheks with this prefix too. fix https://github.com/ruby/debug/issues/866 --- lib/debug/thread_client.rb | 2 +- test/console/control_flow_commands_test.rb | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/debug/thread_client.rb b/lib/debug/thread_client.rb index bfb2c3ee4..cd79a3205 100644 --- a/lib/debug/thread_client.rb +++ b/lib/debug/thread_client.rb @@ -29,7 +29,7 @@ def skip_config_skip_path?(path) end def skip_internal_path?(path) - path.start_with?(__dir__) || path.start_with?('