Trace-based debugging
Write a trace archive with DOM snapshots, console output, network activity, and screenshots from the run that failed.
- Recording Record the part of the scenario that matters
- Scrubbing Actions keep useful snapshots
- In CI The artefact travels with the failure
Record the part of the scenario that matters
Start and stop tracing around the workflow you need to inspect, then write the result to a zip. In CI, store that archive with the failed job.
Record a trace →$context->tracing()->start([
'snapshots' => true, 'screenshots' => true,
]);
// ... the failing scenario ...
$context->tracing()->stop(['path' => 'trace.zip']);Actions keep useful snapshots
The timeline holds a DOM snapshot per step, not a video frame. You inspect the page as it was, with real elements you can hover and select.
Screenshots, video, and traces →The artefact travels with the failure
A trace attached to a failed job gives you the browser state, actions, and network activity from a machine you cannot open directly.
Continuous integration →Move from the tour to working code.
Choose the explanation, recipe, or runnable example that matches what you need next.