1

I used the same settings on Windows and on my corporate Mac, but on Mac it seems it's not working properly?

I get the error:

The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled.

enter image description here

1

1 Answer 1

3

It's not recognizing "type": "python" as a debug configuration.

You need to install the Python extension for VS Code on your Mac copy of VS Code. Then, follow the instructions from the VS Code docs on setting it up Python debug configurations in Visual Studio Code again for that workspace:

The Python extension supports debugging of a number of types of Python applications.
...

Initialize configurations

A configuration drives VS Code's behavior during a debugging session. Configurations are defined in a launch.json file that's stored in a .vscode folder in your workspace.

From the looks of your launch.json file, you should be good to go once the extension is installed. If it still can't recognize "type": "python", as a debug configuration, try reloading VS Code and/or making sure the extension is enabled for the current workspace:

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.