vscode python调试launch.json+ django

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "django",
      "type": "python",
      "request": "launch",
      "program": "${workspaceRoot}\\overall\\manage.py",
      "console": "integratedTerminal",
      "pythonPath": "C:\\Users\\Administrator\\Desktop\\dj\\background\\Scripts\\python.exe",
      "cwd": "${workspaceFolder}"
    },
    {
      "name": "django-runserver",
      "type": "python",
      "request": "launch",
      "program": "${workspaceRoot}\\overall\\manage.py",
      "pythonPath": "C:\\Users\\Administrator\\Desktop\\dj\\background\\Scripts\\python.exe",
      "cwd": "${workspaceFolder}",
      "args": [
        "runserver",
        "--nothreading",
        "--noreload"
      ],
      "django": true
    }
  ]
}

你可能感兴趣的:(python)