Configuring nvim-dap-python for live debugging of FastApi application (using Astronvim/Lazy) #1554
Unanswered
dansereaudd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I didn't see a Discussions tab for nvim-dap-python repo, so I'm posting here.
I am having a lot of trouble (likely because I am relatively new to neovim, especially debugging setups) setting up nvim-dap-python to allow me to debug a running FastApi server. I've tried leveraging AI tools to help analyze configs/setup (avante-nvim using Claude as an example), but that hasn't been as fruitful as I would have liked.
Setup is as follows:
nvim:
python:
From other tests I've done, I know that the debugpy server is starting and that the FastApi server is working normally outside of the debugpy execution. Currently, the debugpy server is started and waits for a client to connect, I go into another terminal window and use keybindings to set a breakpoint and then start DapUI by selecting the Attach to Local Webserver launch option, but I get a message stating "Dap adapter didn't respond..." and then the session terminates moments later.
For the record, I have no issues debugging python files that aren't launched through debugpy. And I've searched for topics related to this issue, but all of them I've seen all mention to use nvim-dap-python to automatically convert type to 'server' when using an 'attach' request, but either that isn't happening for me, or something else is wrong here.
Let me know if any other details or code snippets would be useful here.
Beta Was this translation helpful? Give feedback.
All reactions