skip to Main Content

you just know it by seeing the picture
I don’t know what to do…

I tried many things from google tried putting the same file path to launcher.json but nothing worked even tried reinstalling the whole visual studio code

As asked adding launch.json file code:
launch.json code

2

Answers


  1. Have you tried using the generic configuration for running a currently open file?

        "configurations": [
            {
                "name": "Python: Current File",
                "type": "python",
                "request": "launch",
                "program": "${file}",
                "console": "integratedTerminal"
            },
    
    Login or Signup to reply.
  2. Your launch.json is missing some content. We can let vscode create relevant content automatically.

    1. Delect launch.json in your .vscode floder.
    2. Click Run and Debug button on the left (Or use shortcuts "Ctrl+Shift+D").
    3. Click create a launch.json file and choose Python.

    enter image description here

    You can read docs for more details.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search