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

Debug with arguments without launch.json #80267

Closed
anatolyburakov opened this issue Sep 3, 2019 · 5 comments
Closed

Debug with arguments without launch.json #80267

anatolyburakov opened this issue Sep 3, 2019 · 5 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality info-needed Issue requires more information from poster *out-of-scope Posted issue is not in scope of VS Code

Comments

@anatolyburakov
Copy link

VSCode already supports debugging with arguments via launch.sjon, however this is geared towards spending a lot of time debugging one particular configuration. This is very inflexible for script or tool debugging scenarios, where there is frequently a need to quick test various different command-line parameters, and adding them all into launch.json is cumbersome.

There is already an extension that allows running debug with parameters, however it only allows for one parameter, and doesn't split them up like shell does. It would be good to have this supported natively in VSCode.

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Sep 3, 2019
@weinand
Copy link
Contributor

weinand commented Sep 4, 2019

@natolyburakov please provide more details what you are envisioning here.
And please see #10979.

@weinand weinand added the info-needed Issue requires more information from poster label Sep 4, 2019
@anatolyburakov
Copy link
Author

@weinand #10979 is not exactly what i'm looking for. even setting suboptimal usability aside (manually entering debug commands), running VSCode from command-line would work locally, but not when using Remote SSH extension. Maybe it would be better if i described a scenario in which this would be useful.

Imagine i'm writing a Python tool. It has a few command-line parameters, all of which trigger wildly different paths, and are very adjustable. For example:

./tool.py -a
./tool.py -b 10
./tool.py -b 20 -c 30
./tool.py -a -b 20 -c 30

now, imagine that i have to cycle through all of these quickly, and ensure all of the combinations etc. work. i may just use these once, and never again, so there's no point in adding them to launch.json - it'd take me longer to do that than to run the tool from the command-line with necessary arguments, and my launch.json would be bloated with all of the permutations of all the arguments that i've ever debugged with, which is not ideal as well.

what i'm envisioning is kind of what the above quoted extension does, only supporting multiple parameters, not just one. as in, run debug, prompt for command-line parameters (or reuse previous parameters), and launch the program with desired parameters.

@weinand
Copy link
Contributor

weinand commented Sep 4, 2019

@anatolyburakov so why not filing a feature request against the above quoted extension, or submitting a PR with the changes?

@anatolyburakov
Copy link
Author

anatolyburakov commented Sep 4, 2019

or submitting a PR with the changes

not everyone is proficient in all things JavaScript

so why not filing a feature request against the above quoted extension

i believe the problem was that VSCode doesn't allow supplying multiple arguments that way, and i don't really know how to formulate this in terms of "what needs to be done to make this happen" as i'm unfamiliar with VSCode internals. besides, i think such an obvious feature shouldn't require extensions.

@isidorn isidorn self-assigned this Oct 8, 2019
@isidorn isidorn added the *out-of-scope Posted issue is not in scope of VS Code label Oct 9, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 9, 2019

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality info-needed Issue requires more information from poster *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

3 participants