How to configure nvim dap to debug a remote python program? #910
-
I am trying to configure nvim dap to connect to a remote python program (running in Docker) using debugpy but seem to hit a wall on how to achieve this. The docker container is succesfully using debugpy and I can connect remotely using VSCode and even telnet to the debug port. For this I created a See my configuration below...
With this config I seem to be unable to connect and wondering what I am missing. Any help is highly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The adapter config needs to treat the I'd recommend to use nvim-dap-python as it sets up the adapter correctly. |
Beta Was this translation helpful? Give feedback.
The adapter config needs to treat the
attach
request in a special way like this:https://github.com/mfussenegger/nvim-dap-python/blob/65ccab83fb3d0b29ead6c765c1c52a1ed49592e8/lua/dap-python.lua#L136-L162
I'd recommend to use nvim-dap-python as it sets up the adapter correctly.