- Download XCode from the App Store. Open it and accept the Terms.
- Download Visual Studio Code
- Install C++ Extension
- Clone or Download this Github Repo
- Open
cpp-vscode
directory in Visual Studio Code - Select a
cpp
file (eghelloworld/helloworld.cpp
) and click Debug (little bug icon) - To add a breakpoint, you can add a red dot by selecting the line you want to stop at (eg. line 7 in
helloworld/helloworld.cpp
) - Run the Debugger again
- Create a directory with a name (eg
whatever/
) - The file inside has to be the same name (
whatever/whatever.cpp
)