-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Cannot reset the debug environment chosen for a file #172522
Comments
I think that once you have debugged something, then you see the menu. I just tried it and that's what I see. |
In my case, running a single file without or with debug does not initialize the pane that gives access to said menu: Capture.video.du.2023-02-01.10-16-31.webmI can only make it appear if I create a (Using VSCode 1.74.3) |
I need to review the exact criteria for that menu showing up in this situation, this area is a bit tricky, but you also have the link that says "Show all automatic debug configurations" which gives you the ability to pick an option. |
If I try to click on "Show all automatic debug configurations", and to select one of the choices there, I get this error:
I suppose this is because I don't have any Here is a video (jump near the end for the error mentioned above): Capture.video.du.2023-02-02.09-11-17.webm |
Ah there is actually an issue there, I can repro it, seems to come from here https://github.com/microsoft/vscode-js-debug/blob/df2210162933263ec92b73eba560e33bec3eca9d/src/ui/debugNpmScript.ts#L123 @connor4312 I guess if findFiles doesn't return anything. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
What are the steps to verify? |
|
Problem
A couple of years ago, a feature (covered in issue #124770) was added to VSCode to remember the last debugging environment chosen when executing a given file without any
launch.json
. This was a very welcome addition to avoid having to pick an environment at each press of F5 on a file.However, in a given workspace, there is currently no way to undo such file-environment association. This means that if a user choses the wrong environment on the first debug run, the user is stuck with it. In such a case, I found three ways to "fix" the problem:
launch.json
file that will override this behavior.I cannot use Option 3 in my own context of use (which is teaching software development basics to 1st year students, where I need to avoid as much as possible making them modify complex json files). This leaves me Options 1 and 2, which work but are really unsatisfying from a user experience point of view (and my still create confusion in students in my case).
Feature I'd like
A way to simply delete a given file-environment association, for instance with a new command accessible from the palette. There are already many commands to "reset" things (at least for the views), thus I don't think adding a new one will look out of place. This possibility was actually discussed in issue #124770, but discarded.
The text was updated successfully, but these errors were encountered: