mfussenegger / nvim-dap-python

An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
GNU General Public License v3.0
571 stars 51 forks source link

how to debug main method using pytest #135

Closed Gaurang033 closed 7 months ago

Gaurang033 commented 8 months ago

Hi Guys,

I am trying to setup my neovim and trying to understand how to setup dap-python so can debug main method. currently when I am trying to do that I am getting following message.

platform darwin -- Python 3.12.1, pytest-8.1.1, pluggy-1.4.0
rootdir: /Users/fki/Documents/git/Demo
collected 0 items                                                              
victorfernandesraton commented 8 months ago

Coud you please give some details about how are you configure dap and code pattern here?

Since pytest using certain behavior , you should check pytest doc for folder name convensions

mfussenegger commented 7 months ago

See https://github.com/mfussenegger/nvim-dap-python/issues/122#issuecomment-1908761345