emacs-lsp / dap-mode

Emacs :heart: Debug Adapter Protocol
https://emacs-lsp.github.io/dap-mode
GNU General Public License v3.0
1.29k stars 181 forks source link

Python dap-mode debug doesn't work on a python3 only machine #727

Open pweibert opened 1 year ago

pweibert commented 1 year ago

On my machine only python3 is installed. I cannot debug by calling dap-debug. (defun dap-python--pyenv-executable-find (command) ...) from dap-python.el fails to find my python3 executable.

I've logged the configuration that is passed to: (defun dap-python--populate-start-file-args (conf) and it looks like this: (:type python :args :cwd nil :module nil :program nil :request launch :name Python :: Run file (buffer))

pweibert commented 1 year ago

It works when I set dap-python-executable to "python3" using the "Easy Customization" interface of emacs ( [M-x] customize).