microsoft / vscode-python-debugger

Python debugger (debugpy) extension for VS Code.
https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy
MIT License
41 stars 17 forks source link

Can't run particular pytest test in debug mode #268

Open alexey2baranov opened 3 months ago

alexey2baranov commented 3 months ago

Pytest not working in debug mode when click Debug Test in particular test triangle.

Step to reproduce:

  1. git clone crewai (or any other project)
  2. poetry install
  3. select interpretor in the bottom right corner from poetry env
  4. Ctrl+Shift+P -> Python: Configure Tests -> pytest -> tests folder
  5. right click on test triangle inside code editor and select Debug Test (or click Debug Test in Test Explorer extension)

What expected: run test as it was before

What actually happened: Debug stopped pupup window with "Open launch.json" button image

If I open launch.json file , I just see my config image