-
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
Enable sub process debugging for Flask and Django as the default behaviour #3473
Comments
|
Prescribed solution:
Question:
|
It's not clear to me if this should currently work by updating the launch file to use subprocess = true. Is an experiment running that allows that to work? |
Let's not change launch.json, configuration will be modified under the hood. Log that information in the output channel. |
In the config resolver, check if user is in live reload and new debug adapter experiment, and if any of the launch.configs are detected (django, jinja etc), then add subprocess=true to the in memory config and remove --no-reload/noreload (whatever it is for django or flask) from the args. For flask, also remove --no-debugger. All changes are in https://github.com/microsoft/vscode-python/blob/master/src/client/debugger/extension/configuration/resolvers/launch.ts. Also add telemetry for when this configuration is changed internally. |
To validate this, ensure that you are in Run a flask app, using the following configuration: {
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"console": "integratedTerminal",
"env": {
"FLASK_APP": "app.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "0"
},
"args": [
"run",
"--no-reload"
],
"jinja": true
} Make sure that the |
(on master) I was able to verify that the launch config is getting updated. However, it doesn't actually debug anything. I'm guessing this is due to that problem with ptvsd not resolving properly when running the extension through VS Code. |
That is correct. This is validated then. |
No description provided.
The text was updated successfully, but these errors were encountered: