title: VS code python debugger error with print statements
body: <p>So when ever im trying to debug any Python script on VS code an that script has a print or input statement, it crashes an throws me an "AttributeError" that says 'NoneType' object has no attribute 'write', any ideas why this happens? i cant find any information on Google about it
  here is a screenshot in the error:<a href="https://i.stack.imgur.com/lRW7h.png" rel="nofollow noreferrer">Link to the screenshot</a>
  and also here is my configuration file:</p>
  
  <pre><code>{
  // Use IntelliSense para saber los atributos posibles.
  // Mantenga el puntero para ver las descripciones de los existentes atributos 
  // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
      {
          "name": "Python: Current File (Integrated Terminal)",
          "type": "python",
          "request": "launch",
          "stopOnEntry": true,
          "program": "${file}",
          "console": "integratedTerminal"
      },
      {
          "name": "Python: Attach",
          "type": "python",
          "request": "attach",
          "port": 5678,
          "host": "localhost"
      },
      {
          "name": "Python: Django",
          "type": "python",
          "request": "launch",
          "program": "${workspaceFolder}/manage.py",
          "console": "integratedTerminal",
          "args": [
              "runserver",
              "--noreload",
              "--nothreading"
          ],
          "django": true
      },
      {
          "name": "Python: Flask",
          "type": "python",
          "request": "launch",
          "module": "flask",
          "env": {
              "FLASK_APP": "app.py"
          },
          "args": [
              "run",
              "--no-debugger",
              "--no-reload"
          ],
          "jinja": true
      },
      {
          "name": "Python: Current File (External Terminal)",
          "type": "python",
          "request": "launch",
          "program": "${file}",
          "console": "externalTerminal"
      }
  ]
  </code></pre>
  
  <p>}</p>