admin管理员组

文章数量:1362064

I am trying to set up VS Code for my Python programming. Although I can debug without the launch.json, I wanted to know what are the advantages I am missing. Also I saw that a lot of questions around launch.json were for "modules". In my case I have a working directory and I'm trying example scripts each run standalone. I am trying to understand the benefits.

I am trying to set up VS Code for my Python programming. Although I can debug without the launch.json, I wanted to know what are the advantages I am missing. Also I saw that a lot of questions around launch.json were for "modules". In my case I have a working directory and I'm trying example scripts each run standalone. I am trying to understand the benefits.

Share Improve this question edited Apr 2 at 7:11 jonrsharpe 122k30 gold badges268 silver badges475 bronze badges asked Apr 2 at 7:08 Mr Thomas AndersonMr Thomas Anderson 851 silver badge7 bronze badges 2
  • 1 You can supply arguments, environment variables, etc... in a pre-configured way if you know ahead of time how you'll want to run the script. – Kraigolas Commented Apr 2 at 7:13
  • related: stackoverflow/q/76375592/11107541, stackoverflow/q/68262943/11107541, stackoverflow/q/51244223/11107541 – starball Commented 2 days ago
Add a comment  | 

1 Answer 1

Reset to default 0

You can configure

the path to the script to be executed

Command line arguments (args)

Working directory (cwd)

Environment variables (env)

For more, read Python debugging in VS Code

本文标签: What is the advantage of debugging using launchjson in VS Code in particular with PythonStack Overflow