Skip to content

Cannot Debug Python in VSC: User/settings.json

If you cannot debug python in VSC, you can try any of the following:

  1. use VSC insider

  2. Set python.useisoltaion to false in the user settings

To adjust the user settings (method 2), do the following:

  1. Ctrl + Shift + P

  2. Open Preferences: User Settings (JSON)
    vsc-preferences-user-settings.png

  3. add: python.useIsolation: false

  4. save

  5. restart VSC

The settings file should now look something like this:

vsc-cannot-debug-python-in-vsc-settings.png
Or, for copy-paste:

{

    "[python]": {

        "editor.formatOnType": true,

        "editor.defaultFormatter": "ms-python.black-formatter"

    },

    "git.autofetch": true,

    "workbench.colorTheme": "Visual Studio Dark",

    "git.confirmSync": false,

    "git.enableSmartCommit": true,

    "azureFunctions.showPythonVenvWarning": false,

    "files.autoSave": "onFocusChange",

    "github.copilot.enable": {

        "*": true,

        "plaintext": false,

        "markdown": true,

        "scminput": false

    },

    "editor.indentSize": "tabSize",

    "python.experiments.enabled": false,

    "python.useIsolation": false,

    "azureResourceGroups.selectedSubscriptions": []

}