Trace-Replay enters the ring as Laravel’s newest local debugging heavyweight
The Shift Toward Granular Request Tracking
Debugging in has long been dominated by staples like and , yet introduces a distinct philosophy. Created by , this package functions less like a simple log and more like a flight recorder for your application. It excels at capturing the sequential flow of updates and HTTP requests, offering a dashboard that organizes complex processes into digestible timelines. While competitors provide a snapshot of state, focuses on the journey of the data through your stack.
Prerequisites and Integration
To get started, you should have a solid grasp of architecture and modern frontend integration via . The package is designed for local development environments and aims to replace or augment existing debuggers. You will need a working 10 or 11 installation to utilize the tracing functions effectively.
Essential Debugging APIs
- : The core package providing the dashboard and interceptors.
- / : Optional drivers for automated error fixing.
- : Local AI integration for privacy-focused debugging.
Strategic Tracing in the Codebase
Unlike , which often acts as a passive observer, allows you to define explicit "checkpoints" within your logic. By using the following syntax pattern, you can isolate specific segments of a controller or component:
// Define the start of a logical process
trace_replay_start('Booking Process', ['user_id' => $user->id]);
// Perform sub-tasks
trace_replay_step('Validating Slot');
// Finalize the trace
trace_replay_end('Success');
These tags allow the dashboard to group queries and payloads under specific headers, making it infinitely easier to find which exact line of code triggered a problematic database call.
AI-Driven Recovery and Replays
The standout feature is the Replay button. When a request fails, you can modify your code and hit replay directly from the dashboard to compare the original 500 error with the new response. If the solution isn't obvious, the AI Fix Prompt generates a markdown-formatted context block optimized for LLMs like or . It sends just enough metadata to provide a solution without bloating the token count, a significant efficiency gain over manual copy-pasting.
Tips and Debugging Best Practices
Always remember that is a development tool; do not ship these trace functions to production. If you are seeing empty dashboards, ensure your local environment is correctly configured to log HTTP requests. For those who value privacy, hooking into allows you to use the AI fix features without your source code ever leaving your local machine.
- 22%· products
- 13%· products
- 9%· products
- 9%· products
- 9%· products
- Other topics
- 39%

New Laravel Package Trace-Replay: Another Local Debugger but... Better?
WatchLaravel Daily // 4:59