-
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
Display message if active file being debugged is not a python file #1178
Comments
json
file is selected for debugging
@DonJayamanne I think a message is sufficient here: "Your debugging configuration is set to debug the current file, but the current file is not a Python file. Please open a Python file and try again". Once you realize what the problem is it is easy to fix, no need to add UI for displaying a file picker and if we try to be too smart it might be more of a headache to maintain. |
We could add a link to this. It has info on trying to debug the launch.json file. Users may be curious to learn more. |
@cpinamtz thanks for the ping on this! I think you're right it isn't worth keeping open for the reasons you listed and there's only a single upvote after over 5 years. |
This applies to both experimental & current debugger
Very often we have users attempting to debug python code with the
launch.json
file opened.In such a situation,
launch.json
is treated as the active file and python debugger will attempt to debug this.Proposed solution:
This will avoid a lot of confusion amongst users (I've seen our own devs get confused fall into this trap).
Might want to consider getting this into
March
release.@brettcannon @qubitron
Thoughts
The text was updated successfully, but these errors were encountered: