0

How can I take a user-input in VS code? Here's my launch.json file:

{
"version": "0.2.0",
"configurations": [
    {
        "name": "Python",
        "type": "python",
        "request": "launch",
        "stopOnEntry": true,
        "pythonPath": "${config:python.interpreterPath}",
        "program": "${file}",
        "debugOptions": [
            "WaitOnAbnormalExit",
            "WaitOnNormalExit",
            "RedirectOutput"
        ],
        "console": "integratedTerminal"
    }
]}

What else i need to do?

WyattBlue
  • 591
  • 1
  • 5
  • 21
Amanshivhare1
  • 47
  • 1
  • 6
  • What code are you trying to use to take user input? Did you try `foo = input()`? Try typing something after debugging starts and press enter – bherbruck May 20 '20 at 19:27
  • This already has answers [here](https://stackoverflow.com/a/64303122/14132185) – Tanish Sarmah Oct 11 '20 at 13:36
  • Does this answer your question? [Visual Studio Code: Take Input From User](https://stackoverflow.com/questions/36964949/visual-studio-code-take-input-from-user) – Tanish Sarmah Oct 11 '20 at 13:41

1 Answers1

0

set this.

{
    "code-runner.runInTerminal": true
}

This question is almost certainly a dupe of this

WyattBlue
  • 591
  • 1
  • 5
  • 21