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 50 forks source link

E5108: Error executing lua: ...local/share/nvim/lazy/nvim-dap-python/lua/dap-python.lua:434 #159

Closed NoBadorGood closed 1 month ago

NoBadorGood commented 1 month ago

when I trying to debug a simple python file,it makes a mistake image i have no idea to fix it

mfussenegger commented 1 month ago

You get an error because you're using test_method in a file without test methods.

You'll need to use the Launch file configuration to debug regular files

https://github.com/mfussenegger/nvim-dap-python/pull/160 improves the error handling to give a clearer message