Configured debug type "python" is not supported for VS Code の解決

Django VSCodeでのデバッグ

問題はptyhon プラグインと JupyterNotebook

この2つをアンインストールする f:id:happy_teeth_ago:20211120075534p:plain

f:id:happy_teeth_ago:20211120075545p:plain

JupyterNotebookのプラグインはインストールしないこと!

いろんなことができる代わりに、pythonのデバッグができなくなる。

Djangoを開発しているときは、外す python のプラグインは必要

コマンドパレットから reload windowを選択して、再読み込みするとDjango デバッグできるようになります。

f:id:happy_teeth_ago:20211120075919p:plain めでたし めでたし

launch.json の設定は下記

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Django",
      "type": "python",
      "request": "launch",

//manage.pyへのpathを記載する
      "program": "${workspaceFolder}/blogProject/manage.py",
      "args": [
        "runserver"
      ],

      "django": true
    }
  ]
}

参考資料

debugging - Configured debug type "python" is not supported for VS Code - Stack Overflow