0
f5キーにプログラムを実行するたびに、launch.json
という新しいファイルが開き、そこから何をするのか分かりません。誰もハットを知っていますか?これは、ビジュアルスタジオ用のPythonをインストールする方法と同じではありません。 これはlaunch.json
のようなものです。ビジュアルスタジオでpythonプログラムを実行するにはどうすればいいですか
{
"version": "0.2.0",
"configurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
},
{
"name": "Python Console App",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"externalConsole": true,
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit"
]
},
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${workspaceRoot}/manage.py",
"args": [
"runserver",
"--noreload"
],
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput",
"DjangoDebugging"
]
},
{
"name": "Watson",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${workspaceRoot}/console.py",
"args": [
"dev",
"runserver",
"--noreload=True"
],
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
}
]
}
ありがとうございます!
[Visual Studio 2015用のPythonツールをインストールするにはどうすればいいですか?](http://stackoverflow.com/questions/33032209/how-can-i-install-python-tool-for-visual-studio- 2015) – TemporalWolf
Mushahid kahnのおかげで –