-
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
Open browser after launching a Django or flask app #1058
Comments
How do you know what port to open? Would we prompt for that and then just open |
To help manage our issues and to better communicate what the team plans to work on we are closing issues that we don't plan to work on but would accept a pull request from a volunteer for. To be clear, closing this issue does not mean we won't consider a pull request for this enhancement as outlined in our contributing guide, just that the development team has no plans to work on it themselves. |
Re-opening as other extensions are looking at doing this, C# extension does this today (or are in the process of doing this). Also, it makes sense, i.e. when you start debugging a web application the next logical step is to open a browser. |
We would need to figure out how this would work in remote scenarios. |
This feature has landed in VS Code.We might want to implement this at least for local debugging and consider a seprate issue for remote scenarios. FYI - Its just a configuration setting in |
I have another issue here with regex for Django and Flask. |
@karthiknadig Can you elaborate on that? |
Flask outputs comes out to be something like this, * Serving Flask app "app.py"
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) So I am planning to use, "serverReadyAction": {
"pattern": "Running on http://([0-9]+[.][0-9]+[.][0-9]+[.][0-9]+:[0-9]+)",
"uriFormat": "http://%s",
"action": "openExternally"
} Similar for django. By observation, it looks like we'll have |
See here for patterns that worked for me: #5192 (comment) Note: that it may not always be |
@Anapo14 Spec for this is done right? |
Changes will be here https://github.com/microsoft/vscode-python/blob/master/src/client/debugger/extension/configuration/resolvers/base.ts. Add logging and telemetry for this change. |
Adding this issue here to the Python Debugger repository. |
Investigate the possibility of launching the browser once a django/flask app has been started
Some other IDEs (PTVS) do this today
The text was updated successfully, but these errors were encountered: