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

Unable to create launch config that points to non-root level app.py? #288

Closed rzhao271 closed 3 months ago

rzhao271 commented 3 months ago

Testing #280

My workspace folder is at C:\Users\raymondzhao\work\endgame\flask-example. I added some nested folders and created app.py at C:\Users\raymondzhao\work\endgame\flask-example\nest1\nest2\app.py. When I paste C:\Users\raymondzhao\work\endgame\flask-example\nest1\nest2\app.py into the file picker, I notice that launch.json creates a Flask launch config that points to just app.py.

rzhao271 commented 3 months ago

Nevermind, the file picker recognizes app.py when I move it under nest1, and creates a launch.json file that points to nest1\app.py.