From 322968d6345291c692f77ae4c4ec46350a27f45c Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Thu, 22 Sep 2022 15:24:01 -0400 Subject: [PATCH] Save navigate when attempting to compare paths I have been experiencing an issue where compare path is causing my vscode debugger to be unable to attach. Safe navigating the downcase function seems to have stabilized the issue for me so I figured I would contribute the change back. --- lib/debug/session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debug/session.rb b/lib/debug/session.rb index c95edd57b..a14804440 100644 --- a/lib/debug/session.rb +++ b/lib/debug/session.rb @@ -2231,7 +2231,7 @@ def self.step_in &b # depend on the file system. So this check is only roughly estimation. def self.compare_path(a, b) - a.downcase == b.downcase + a&.downcase == b&.downcase end else def self.compare_path(a, b)