Skip to content

Make it easier to understand which debug configuration to pick when debugging a Python script #157

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
meganrogge opened this issue Sep 26, 2023 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality under-discussion Issue is under discussion for relevance, priority, approach

Comments

@meganrogge
Copy link

meganrogge commented Sep 26, 2023

Testing microsoft/vscode-python#22081

It would be better if it could be assumed that the active file (with breakpoints) is what I'd like to debug

Image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 26, 2023
@luabud
Copy link
Member

luabud commented Dec 14, 2023

the problem is that if this is part of a e.g. Django app, we don't know if users want to debug it as a script or as part of the Django app. The key thing is that only the debug configurations are different for the scenarios listed in the drop down -- they could all end up debugging that active Python file (we've actually seen too many users get confused with selecting "Python file" when in fact they wanted a different configuration). I've wondered if replacing "Python file" with "Script" would make the decision making there less confusing, but not sure 🤔
@paulacamargo25 @cwebster-99 would love to hear your thoughts!

@luabud luabud added feature-request Request for new features or functionality and removed triage-needed Needs assignment to the proper sub-team labels Dec 14, 2023
@luabud luabud changed the title asked what i'm trying to debug when I have a test file open with breakpoints set Make it easier to understand which debug configuration to pick when debugging a Python script Dec 14, 2023
@luabud luabud transferred this issue from microsoft/vscode-python Dec 14, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 14, 2023
@cwebster-99
Copy link
Member

I wonder if we could make this drop-down list smarter based on what we are able to gather about the user's project/environment? I am thinking in the case where the user is working on a Flask app, would we be able to tell based on their imports and filter out configurations that wouldn't resonate with their project. Not necessarily directly addressing this issue/suggestion but could be something to think about.

@luabud In the case of your example, I agree we should show the options as we don't know the users intentions. But, perhaps we could rename the selection to make it more clear. The first idea that came to mind was "Single Python File" or "Script" like you suggested.

@paulacamargo25 paulacamargo25 added under-discussion Issue is under discussion for relevance, priority, approach and removed triage-needed Needs assignment to the proper sub-team labels Feb 7, 2024
@paulacamargo25 paulacamargo25 added this to the August 2024 milestone Jul 24, 2024
@karthiknadig karthiknadig removed this from the August 2024 milestone Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

6 participants