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

Start debugging a python file directly from command line #5396

Closed
kgfly opened this issue Apr 21, 2019 · 4 comments
Closed

Start debugging a python file directly from command line #5396

kgfly opened this issue Apr 21, 2019 · 4 comments
Labels
area-debugging feature-request Request for new features or functionality

Comments

@kgfly
Copy link

kgfly commented Apr 21, 2019

This is a feature request.

Expected behaviour

This a feature request. Currently, to debug a py script, I've to setup launch.json, which is very tedious if you just want to do some quick very verification.

Actual behaviour

Request: start to debug directly from command line, eg
code -e vspy -d ./a.py arg1 arg2, argN: to debug a.py with arg1 and arg2.... argN

"-e vspy" means "pass the following parameters to vscode-python extension."

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 21, 2019
@DonJayamanne DonJayamanne added area-debugging needs decision feature-request Request for new features or functionality labels Apr 22, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Apr 22, 2019
@DonJayamanne DonJayamanne changed the title Feature request: start to debug directly from command line. Start debugging a python file directly from command line Apr 22, 2019
@kgfly
Copy link
Author

kgfly commented Apr 22, 2019

I think it need works from both vscode and extensions. I filed one in vscode. microsoft/vscode#72726

@kgfly
Copy link
Author

kgfly commented Apr 23, 2019

https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-debug-launcher mention that they can debug script by running "vscode://fabiospampinato.vscode-debug-launcher/<command>?args=<arg1>,<arg2>,<argN>".
So can vscode-python have similar feature? It does not require any work from vscode.

@MartinSmeyer
Copy link

yes please, that would be awesome!

@kgfly kgfly closed this as completed May 25, 2019
@ghost ghost removed the needs decision label May 25, 2019
@kgfly
Copy link
Author

kgfly commented May 25, 2019

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants