# Part 4 - Debugging

### Debug

It is possible to debug your code using the debugger in Visual Studio. After rebuilding your project, select **Tools>Attach to Process...**. from the main menu of Visual Studio. Select **Vspy3.exe** and click on **Attach**.

![Figure 1: Attach to Process window](https://2280262322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3KyOmcYmM6ZVd3OQDa1%2Fuploads%2F5GsFSrnbSqqUJOn7pC4v%2Fspyexample4.gif?alt=media\&token=4203b915-eb5a-4129-b676-80b6eebf86e2)

You can now run Vehicle Spy and have break points in your C code. Debugging your C code is done like any other C project.
