From 22af181d627577968f03213ba59d02458d3e734a Mon Sep 17 00:00:00 2001 From: stasvlasov Date: Wed, 24 Apr 2024 13:59:41 +0000 Subject: [PATCH] Fixes the warning about file property has to be absolute path (#789) (Warning (emacs): Initialize request failed: The "file" property in the launch configuration has to be an absolute path) --- dap-firefox.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap-firefox.el b/dap-firefox.el index f469088..f30bfd6 100644 --- a/dap-firefox.el +++ b/dap-firefox.el @@ -48,7 +48,7 @@ (dap--put-if-absent :dap-server-path dap-firefox-debug-program) (dap--put-if-absent :type "Firefox") (dap--put-if-absent :cwd default-directory) - (dap--put-if-absent :file (read-file-name "Select the file to open in the browser:" nil (buffer-file-name) t)) + (dap--put-if-absent :file (expand-file-name (read-file-name "Select the file to open in the browser:" nil (buffer-file-name) t))) (dap--put-if-absent :name "Firefox Debug"))) (dap-register-debug-provider "firefox" 'dap-firefox--populate-start-file-args)