---
version: "2026.1.0"
language: "en"
---
# Debugging

The debugging building blocks are used to add debugging information to cases and draw meta-data shapes during case runs. This can help in the construction and maintenance of particularly complex cases.

The [Comment](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/debugging/comment.md) block is used to add internal comments to a case.

The [**Log message**](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/debugging/log-message.md) and [**Log screenshot**](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/debugging/log-screenshot.md) blocks are used to write messages and screenshots to the case run log.

The [Stopwatch](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/debugging/stopwatch.md) block is used to measure elapsed time between different parts of an automation case, for example to time how long an application or business transaction takes to complete.