-
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
Rename default debugging configuration #412
Comments
Looks like you had the launch.json file opened when you clicked the debug icon. Please open a pythin file when debugging using the If this isn't intuitive let's discuss that separately |
Let me know how this goes |
Yes, this was the issue... caused by the fact that the .json file is created and it gets the main focus. I do think it's unintuitive, and could potentially confuse new first time users. When you click start debugging it might make sense to prompt you to pick your debugging configuration, and not pop up the .json configuration by default. It might also make sense to name the "Python" configuration to be "Current Python File", so it's obvious that clicking play will attempt to debug whatever file the user has open. |
Short of the file/configuration rename I believe everything else is a VS Code issue. I've tweaked the title to reflect what is being asked of the extension. |
Unfortunately this is out of our hands. I could also is check if file extension is |
Further to this, I believe we could improve the UX by displaying a file picker (using new VS Code API) or similar UI based a condition (such as active file is |
@DonJayamanne is it possible, the first time when clicking "Start Debug" and no launch.json file is present, to ask which debug configuration the user wants? Then:
This has the added benefit of being a single click (+ selection of configuration) to start debugging the first time. How about also renaming the default configuration to "Python: Current File", so it is explicit about what the default debug config does. |
Chatted with Don, we agreed changing the default configuration name to "Python: Current File" would help here. |
The change was no correct, we need to make changes to the localization files as well (at least for english). |
Environment data
VS Code version: 1.18.1
Python Extension version: 0.9 release candidate
Python Version: Python 3.6.3
OS and version: Windows 10
Actual behavior
Start debugging fails with output in the debug console:
After changing to python: django in the debug dropdown debugging works, and continues working even after switching back to "Python" configuration.
Expected behavior
Debugging works
Steps to reproduce:
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: