branch: externals/dape commit a39a26fe6ec22d293db4348ef60070ea921c4952 Author: Daniel Pettersson <dan...@dpettersson.net> Commit: Daniel Pettersson <dan...@dpettersson.net>
Change debugpy to respect python-interpreter and improved tramp support Addressing #231 --- dape.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dape.el b/dape.el index c776e95996..e7717492dc 100644 --- a/dape.el +++ b/dape.el @@ -168,11 +168,10 @@ ensure (lambda (config) (dape-ensure-command config) (let ((python (dape-config-get config 'command))) - (unless (zerop - (call-process-shell-command - (format "%s -c \"import debugpy.adapter\"" python))) + (unless (zerop (process-file-shell-command + (format "%s -c \"import debugpy.adapter\"" python))) (user-error "%s module debugpy is not installed" python)))) - command "python" + command (progn (require 'python) python-interpreter) command-args ("-m" "debugpy.adapter" "--host" "0.0.0.0" "--port" :autoport) port :autoport :request "launch"