-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flask debugger configuration fails (Window) with "could not import" message #1634
Comments
@kraigb Solution Change the setting |
@DonJayamanne I too am having this issue. Is there a suggested work-around? I'm downgrading Flask to accomodate for the breaking change in the latest version, as you mention, but that's not doing me any good. My original point of entry was https://github.com/DonJayamanne/pythonVSCode/wiki/Debugging:-Flask, did me a lot of good. I gather it's originally from https://keathmilligan.net/debugging-a-flask-0-11-app-in-visual-studio-code/, but doesn't mention run.py not being needed (Quote "previously, you would need to add a “run.py” script to your project for Windows, but that is no longer needed"). I don't have it and am confused if I should? Fwiw here's my configuration in launch.json:
Thanks for your consideration. |
Change |
@DonJayamanne Thanks a lot, appreciate it. In my specific case I had my app.py in a sub-folder, so my flask-app environment variable is
|
It seems that the windows format C:\app_folder is not correct. |
This setup works for me:
Where Flask app is in the file |
2018.4.0 release.
Windows 10
Also reported as microsoft/vscode#48972.
Repro steps:
Seems like a problem parsing the path.
The text was updated successfully, but these errors were encountered: