# Breakpoint (run step-by-step)

You can run a test until a certain point and then pause, so that you can investigate what you need using in-browser [Chrome debugging tools](https://docs.bugbug.io/debugging-tests/debug-in-chrome).

## Run step-by-step

BugBug supports step-by-step execution of the tests. To do this, click `Run and stop here` between steps. This will activate the **paused mode**. In this mode, you can run a test step-by-step and completely control an execution process.

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FS3kJzqmnhiVm4qNcNxvs%2Fimage.png?alt=media&#x26;token=b75f3e10-e12f-4eac-958f-7175fb7553e8" alt=""><figcaption><p>To enable step-by-step execution, click on the "Run and stop here" action.</p></figcaption></figure>

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FgRMEhR3OE8GDyA7yPW99%2Fimage.png?alt=media&#x26;token=8dc448ef-672b-46d4-8e5c-91a39477005b" alt=""><figcaption><p>Paused mode. To execute next step click on the "Run next step and pause" icon</p></figcaption></figure>

When a test is paused, a browser window with a test will display BugBug's overlay with options to control the execution process.

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2Fwvgnn4Ehlc3VbdPewBRD%2Fimage.png?alt=media&#x26;token=46d07999-34bd-41bb-9552-5b9b8caf08e9" alt=""><figcaption><p>Paused mode in a window with a test. BugBug's overlay has options to control the execution process</p></figcaption></figure>

BugBug allows you also to rewind or fast-forward the execution process. You can read more about it here [edit-and-rewind](https://docs.bugbug.io/workflow-tips/edit-and-rewind "mention")


---

# 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.bugbug.io/debugging-tests/breakpoint-run-step-by-step.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.
