-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Comments
@natolyburakov please provide more details what you are envisioning here. |
@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:
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. |
@anatolyburakov so why not filing a feature request against the above quoted extension, or submitting a PR with the changes? |
not everyone is proficient in all things JavaScript
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. |
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! |
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.
The text was updated successfully, but these errors were encountered: