# Screenshots

You can use screenshots to debug your tests and understand what was the reason for the failure.&#x20;

When a test step is executed, **BugBug automatically takes screenshots**:

* of the whole window
* of the individual element

![](https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FrZjlWLhBgovJ7MVa2Yol%2Fimage.png?alt=media\&token=89bef946-142a-4c2d-b862-2cfb9bc6206a)

Click the screenshots to see the full preview.

BugBug also keeps the screenshots history, so that you can also compare screenshots from previous runs. Just go to the ["Runs history" tab](https://docs.bugbug.io/debugging-tests/runs-history).&#x20;

{% hint style="info" %}
**How long screenshots are kept?** It depends on your subscription plan, learn more in [pricing](https://bugbug.io/pricing/).
{% endhint %}

&#x20;
