-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Allow upgrading to a launch config from a terminal command #150460
Comments
Hm, interesting idea. We use environment variables to hook up debugging to VS Code. The difficulty with changing them on the fly is that dumping commands to change environment variables for the terminal is both difficult and unsafe. This is why when changing variables (e.g. when you change auto attach modes) terminals require a relaunch to get them to apply. One option we could take is provide a command that could be run in the terminal, like |
I think the way I want to approach this scenario is to have a context menu action on shell commands that involve Node.js processes to "Save at launch configuration" (in this menu here, with shell integration on) I think that accomplishing the goal of wanting to "upgrade" from a normal shell into a debug environment, and also makes setting up launch configs quite easy. cc @Tyriar / @meganrogge |
This is blocked on #151937 feature work |
To elaborate on my comment above, I'm not a fan of adding a persistent "create launch.json" to the command decoration menu. Instead I think we should add it to the contextual menu as that's the purpose we're aiming to have for that (high quality suggestions). |
The generic path for this now is copilot-debug: https://code.visualstudio.com/updates/v1_96#_debugging-with-copilot |
For running a nodejs app, I would have set environment variables in my terminal session. Later I decide to debug it, but I have to open a separate JavaScript Debug Terminal and repeat the process of setting environment variables.
There should be a way to convert an existing, say, powershell terminal, to a JavaScript Debug Terminal, so that I don't have to repeat setting my env variables again.
The text was updated successfully, but these errors were encountered: