# Debugging with Print Statements

### Outline

* This is not a recommended method of debugging. No professor will advise you to debug like this.&#x20;
* Yet this is a technique you'll end up using often in your CS career
* I would rather you learn it properly (and know when to avoid it!) than to not learn it at all and lack this feature in your set of tools


---

# 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://calnotes.gitbook.io/cs61a-guidebook/debugging-tools/debugging-with-print-statements.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.
