question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow args to be defined from "user input" by using command.extention

See original GitHub issue

From @mike-pt on January 30, 2017 23:14

While discussing the ability to get user input to define program or args (see vscode#9544 ) I noticed I could do this with the python debugger for “args”.

Since args expects an array not a strings this is at the moment impossible, however if args would be changed to string and (as suggested in the GHI) the Pyhton Debbuger impletments its own ${command.extension.python-debug.getCommandline} we could easy promt the “user” for args, this would be very handy when testing an appp for a bunch of different scenarios that change according to those args.

Please consider this as a FR

Copied from original issue: DonJayamanne/pythonVSCode#684

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
brettcannoncommented, Apr 5, 2018

We are planning to solve this by helping users to attach to a running Python process, so you can start Python how you want and then post-launch attach to it (#1182 ).

0reactions
DonJayamannecommented, Nov 13, 2017

From @mike-pt on June 5, 2017 18:48

Any idea if this is still going to land soon?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invoking a user defined input in tasks from extension
Make the args property an array of strings. This works for the built-in inputTypes. if your input type is a command, the command...
Read more >
Commands | Visual Studio Code Extension API
A guide to using commands programmatically in Visual Studio Code ... URI and a position as arguments, and returns a promise with a...
Read more >
Python Command Line Arguments
Arguments represent the source or destination to be processed. Subcommands allow a program to define more than one command with the respective set...
Read more >
Parameters / Arguments - Windows CMD - SS64.com
The FOR command creates parameter variables which are identified with a letter rather than a number (e.g. %%G). The Parameter Expansions described above...
Read more >
Commands - discord.py
This allows our user to accept either one or many arguments as they please. This works similar to positional arguments, so multi-word parameters...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found