2016-12-10 4 views
-1

ich vor kurzem Visual Studio Code installiert habe, und ich hinzugefügt Python-Erweiterung, und ich habe den Python-Pfad zu tasks.json und settings.json und launch.json hinzugefügt i debuggen können, aber ich kann nicht Eingangsdaten während der Code ausgeführt wird, ich habe Integrated Terminal/Konsole versucht, aber es funktioniert nicht, das ist die Ausgabe:zur Eingabe auf Visual Studio Code Python

C:\Users\Mugiwara303\Documents\VSCpython>cd null && cmd /C "set "PYTHONIOENCODING=UTF-8" && C:\Users\Mugiwara303\AppData\Local\ 
Programs\Python\Python35-32\python.exe C:\Users\Mugiwara303\.vscode\extensions\donjayamanne.python-0.5.5\pythonFiles\PythonTool 
s\visualstudio_py_launcher.py null 57138 34806ad9-833a-4524-8cd6-18ca4aa74f14 WaitOnAbnormalExit,WaitOnNormalExit c:\Users\Mugi 
wara303\Documents\VSCpython\.vscode\main.py " 
The system cannot find the path specified. 

Antwort

1

schließlich habe ich es fix! "CWD": "$ {workspaceRoot}", statt "CWD": "null",

{ 
    "name": "Integrated Terminal/Console", 
    "type": "python", 
    "request": "launch", 
    "stopOnEntry": true, 
    "pythonPath": "C:\\Users\\Mugiwara303\\AppData\\Local\\Programs\\Python\\Python35-32\\python.exe", 
    "program": "${file}", 
    "cwd": "${workspaceRoot}", 
    "console": "integratedTerminal", 
    "debugOptions": [ 
     "WaitOnAbnormalExit", 
     "WaitOnNormalExit" 
    ] 
},