Skip to content
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

"Dynamic" debug launch args in the UI #30588

Closed
GSThornton opened this issue Jul 13, 2017 · 3 comments
Closed

"Dynamic" debug launch args in the UI #30588

GSThornton opened this issue Jul 13, 2017 · 3 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan
Milestone

Comments

@GSThornton
Copy link

  • VSCode Version: Code - Insiders 1.15.0-insider (56a5bf1, 2017-07-13T06:29:54.260Z)
  • OS Version: Windows_NT ia32 6.1.7601
  • Extensions:

It would be great if we could specify "args" for a debug configuration from a text entry box in the editor as well as setting them inside the launch.json entry. If you are working with many launch configurations then having to keep moving args around between them as you switch is a pain. A nice text entry box undernearth the config selector in the debug pane that injected its contents into the "args" field of the config as it was launched would be awesome.

Graeme

@vscodebot vscodebot bot added the insiders label Jul 13, 2017
@vscodebot vscodebot bot added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 13, 2017
@weinand weinand added feature-request Request for new features or functionality and removed insiders labels Jul 13, 2017
@weinand
Copy link
Contributor

weinand commented Jul 13, 2017

You can write an extension that provides that support.
There is a discussion about this here #9544
Another similar request is this #9297
mock-debug shows how a "text input box variable" can be implemented:
https://github.com/Microsoft/vscode-mock-debug/blob/master/src/extension.ts#L24

And finally there is already an extension that implements this approach: https://marketplace.visualstudio.com/items?itemName=rozzzly-dev.vscode-prompt-debug

@weinand weinand added the help wanted Issues identified as good community contribution opportunities label Jul 13, 2017
@weinand weinand added the *extension-candidate Issue identified as good extension implementation label Sep 11, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 11, 2018

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Sep 11, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 26, 2018
@microsoft microsoft unlocked this conversation Dec 6, 2018
@weinand weinand reopened this Dec 6, 2018
@weinand weinand removed *extension-candidate Issue identified as good extension implementation help wanted Issues identified as good community contribution opportunities labels Dec 6, 2018
@weinand
Copy link
Contributor

weinand commented Dec 6, 2018

This feature will become available in the November release via #63987.

Example:

{
	"version": "0.2.0",
	"configurations": [
		{
			"type": "node",
			"request": "launch",
			"name": "Launch Program",
			"program": "${workspaceRoot}/${input:programName}",
		}
	],
	"inputs": [
		{
			"id": "programName",
			"type": "pickString",
			"default": "test.js",
			"description": "The program name"
		}
	]
}

@weinand weinand added this to the November 2018 milestone Dec 6, 2018
@weinand weinand closed this as completed Dec 6, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

No branches or pull requests

2 participants