skip to Main Content

Using VSCode I can run my test python code by pressing the play icon top right.

This should = run without debugging but I get no output

I have tried adding python path to settings.json as per

vscode "Run Without Debugging" doesn't open Python Debug Console

but no change.

Not a big issue but any non workaround solutions.

2

Answers


  1. I also updated a new answer in your post.

    You can specify the shell in setting.json by adding the following code:

    "terminal.integrated.shell.windows":"C:\WINDOWS\system32\cmd.exe",
    

    Of course, this method is outdated, and we will also receive warnings (but it will not affect its effectiveness):

    enter image description here

    According to the update of document, we can name the terminal and specify the default terminal in the following way:

        {
      "terminal.integrated.profiles.windows": {
        "My PowerShell": {
          "path": "pwsh.exe",
          "args": [
             "-noexit",
             "-file",
             "${env:APPDATA}PowerShellmy-init-script.ps1"
          ]
        }
      },
      "terminal.integrated.defaultProfile.windows": "My PowerShell"
    }
    
    Login or Signup to reply.
  2. I Fixed: Re-installing the debugger (in my case IntelliSense)

    1. File Menu "Run" – "Install Additional Debuggers…"
    2. Then in the actual debugger (Generally the first) select Uninstall
    3. Restart VScode
    4. File Menu "Run" – "Install Additional Debuggers…"
    5. Search and install the debugger again
    6. Try
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search