Helpful Tip: Visual Studio Debugging

This short guide will show you how to set up Visual Studio so that you can use its debugging and profiling tools.

  1. Click on the drop-down next to "Local Windows Debugger" at the top of the window and go to the properties of the "ALL_BUILD Debug" project.

  1. Go to the "Debugging" section and paste in the following in the "Command" field.
$(PLAYDATE_SDK_PATH)\bin\PlaydateSimulator.exe

  1. Press OK to save the change.

After doing this, you should now be able to use the IDE to help you with debugging, such as by placing breakpoints in your code.

Happy bug-hunting!

5 Likes

Great tip! I've added this to our CMake files in the C examples for our next feature release to enable debugging out of the box with Visual Studio.

2 Likes