Closed Vinni-Cedraz closed 6 months ago
I fixed this by commenting out the line as was suggested to me by someone on reddit
args = { "-m", "debugpy.adapter" },
However, I still don't understand why that line was causing me issues if I took it out from the exact example given on the documentation:
command = os.getenv("HOME") .. "/.local/share/nvim/mason/packages/debugpy/debugpy-adapter"
points to some executable that probably wraps python -m debugpy.adapter
, not the python interpreter.
command = os.getenv("HOME") .. "/.local/share/nvim/mason/packages/debugpy/debugpy-adapter"
points to some executable that probably wrapspython -m debugpy.adapter
, not the python interpreter.
Yes, because using the python interpreter: /usr/bin/python3
also didn't work. Didn't work either with or without the args.
Debug adapter definition and debug configuration
I tried doing basically the same for Go language and Javascript too (changing the names and paths appropriately) and it also didn't work. It only worked for c, cpp and dart.
Debug adapter version
No response
Steps to Reproduce
Expected Result
starting a debug session where I can set through the code as it was executed
Actual Result
(Python) - error message in orange:
/home/myuser/.local/share/nvim/mason/packages/debugpy/debugpy-adapter exited with code: 2
(Go) - absolutely nothing happens