New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pythonPackages.debugpy: package request #89592
Comments
@MetaDark Thanks a lot! The cli seems to work for me as well. In Emacs, I seem to get something with the following changes to dap-mode: ---
dap-python.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dap-python.el b/dap-python.el
index 09ced1f..c8272e2 100644
--- a/dap-python.el
+++ b/dap-python.el
@@ -190,7 +190,7 @@ as the pyenv version then also return nil. This works around https://github.com/
(module (plist-get conf :module)))
(plist-put conf :program-to-start
- (format "%s%s -m ptvsd --wait --host %s --port %s %s %s %s"
+ (format "%s%s -m debugpy --listen %s:%s --wait-for-client %s %s %s"
(or dap-python-terminal "")
(shell-quote-argument python-executable)
host
@@ -215,7 +215,7 @@ as the pyenv version then also return nil. This works around https://github.com/
(module (plist-get conf :module)))
(plist-put conf :program-to-start
- (format "%s%s -m ptvsd --wait --host %s --port %s %s %s %s"
+ (format "%s%s -m debugpy --listen %s:%s --wait-for-client %s %s %s"
(or dap-python-terminal "")
(shell-quote-argument python-executable)
host
@@ -238,7 +238,7 @@ as the pyenv version then also return nil. This works around https://github.com/
:cwd nil
:module nil
:program nil
- :request "launch"
+ :request "attach"
:name "Python :: Run file (buffer)"))
(dap-register-debug-template "Python :: Run pytest (buffer)"
--
2.27.0 Every other adapter uses It would be great if you could submit your derivation upstream here. |
@leungbk Thanks! Using "attach" instead of "launch" was the missing piece. It seems to work well after a bit of testing, so I will submit my derivation. |
Project description
debugpy
is an implementation of the Debug Adapter Protocol for Python.Metadata
The text was updated successfully, but these errors were encountered: