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
492 stars 46 forks source link

how to debug main method using pytest #135

Closed Gaurang033 closed 3 months ago

Gaurang033 commented 3 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 3 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 3 months ago

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