# 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](/files/H34zlmbDItSjrYJ3BxJv)

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intrepidcs.com/vspy-3-documentation/3.9.14/vehicle-spy-tutorials/tutorial-c-code-interface/part-4-debugging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
