Why dd() Is Not Enough Anymore
If you debug Laravel apps with dd(), you already know its limit: it shows you one moment in time. A page is slow, a queued job silently fails, an email never arrives — and a single dump cannot tell you what happened across the whole request. Laravel Telescope is Laravel’s official debug assistant, and it fixes exactly that problem. It records every request, database query, queued job, exception, log entry, email, notification, cache operation, and scheduled task your app produces, then shows the whole story in a dashboard at /telescope.
This guide walks you through installing Laravel Telescope, the watchers worth your attention first, five debugging workflows you will actually use, the new terminal commands from Telescope 5.24, and how to run it safely outside your laptop. Everything here is verified against the official Laravel 13.x Telescope documentation and the Telescope 5.24 release notes, October 2026.
Install Laravel Telescope in Two Minutes
Install Telescope with Composer, publish its assets and migrations, then migrate:
composer require laravel/telescope
php artisan telescope:install
php artisan migrate
Start your app and open /telescope. New requests start appearing immediately. The telescope:install command publishes Telescope’s configuration file (config/telescope.php), its migrations, and its public assets, and creates a TelescopeServiceProvider.
Local-Only Installation (Recommended)
If Telescope is only for your own machine, install it as a development dependency instead:
composer require laravel/telescope --dev
php artisan telescope:install
php artisan migrate
The --dev flag alone is not enough. If production deploys run composer install --no-dev, an unconditionally registered Telescope provider will crash the app with a class-not-found error. The official docs prescribe three extra steps: remove the TelescopeServiceProvider registration from bootstrap/providers.php, register both Telescope providers only when the environment is local in your AppServiceProvider, and prevent package auto-discovery in composer.json:
// app/Providers/AppServiceProvider.php
public function register(): void
{
if ($this->app->environment('local') && class_exists(\Laravel\Telescope\TelescopeServiceProvider::class)) {
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
$this->app->register(TelescopeServiceProvider::class);
}
}
// composer.json
"extra": {
"laravel": {
"dont-discover": [
"laravel/telescope"
]
}
}
With that setup, Telescope physically cannot load in production. That is the safest default, and it is the one to use unless you have a specific reason to record Telescope data on a live server.
The Watchers to Learn First
Telescope collects data through watchers — one per kind of activity. You do not need to learn all of them on day one. These five cover nearly every debugging session:
1. Request Watcher
Every HTTP request lands here with its method, path, status code, duration, memory usage, headers, payload, session data, and response. When a page is slow, this is your starting point: the duration column alone tells you whether the problem is the request itself or something it triggered.
2. Query Watcher
Every SQL query, grouped under the request or job that ran it, with its execution time. The Query watcher flags queries slower than the configured threshold — 100 milliseconds by default — so slow queries stand out without you hunting for them. This is also where N+1 problems become obvious: the same query shape repeated dozens of times under one request.
3. Exception Watcher
Every exception with its class, message, file, line, and full stack trace, linked to the request or job that threw it. Intermittent 500s stop being mysteries when you can open the exact exception next to the exact request that produced it.
4. Job Watcher
Queued jobs with their payload, queue, connection, attempts, and — for failures — the linked exception. A job that “just never ran” usually turns out to have failed three times and landed in the failed-jobs table; the Job watcher shows you that chain in one screen.
5. Mail, Cache, and Log Watchers
Mail shows every mailable actually rendered and sent (or attempted); Cache shows hits, misses, and writes per key; Log shows every Log:: call in context. The classic “the email never arrived” bug is almost always solved in the Mail tab in under a minute: either the mail is there and the problem is delivery, or it is not there and the problem is your code.
Each entry belongs to a batch — all the work produced by one request, job, or command. Clicking any entry shows the rest of its batch, so you can move from a slow query to the request that ran it, to the logs that request wrote, without re-running anything.
Five Debugging Workflows You Will Actually Use
Workflow 1: Find Why a Page Is Slow
Open the Requests tab, sort by duration, and open the slowest request. Switch to its batch and look at the queries. If you see the same query shape repeated once per row of a list, you have an N+1 problem — fix it with eager loading. If one query is flagged slow, check whether it is missing an index or selecting columns it does not need. For the full fix order, see our guide on speeding up Laravel queries before you reach for a bigger server.
Workflow 2: Find Why a Queued Job Failed
Open the Jobs tab and filter to failed jobs. The entry shows the payload, the number of attempts, and the exception that killed it — no need to dig through log files or the failed_jobs table first. Fix the cause, then retry from the dashboard’s context: you already know exactly which job and which input failed. For the production side of this — retries, backoff, timeouts, and Supervisor — see our Laravel queue workers guide.
Workflow 3: Find Where an Email Went
Open the Mail tab and search for the recipient. If the mail is recorded, your code did its job and the problem is downstream (driver config, spam filtering, a wrong MAIL_FROM_ADDRESS). If it is not recorded, the code path that should have sent it never ran — check the request batch for the trigger: a condition that skipped the send, an exception swallowed before the mail call, or a queue worker that is not running.
Workflow 4: Find a Cache Mystery
Stale data that should have been refreshed, or a page that is slow despite caching, both live in the Cache tab. Look for the key: a miss where you expected a hit means the key is built differently at write time and read time (a common bug when the key includes a user ID in one place and not the other). A hit on data you just changed means the invalidation path never ran — check the request batch for the write that should have busted it.
Workflow 5: Reproduce an Intermittent 500
Intermittent errors are the worst kind of bug because you cannot reproduce them on demand. Telescope records them anyway. Filter the Requests tab to 500s, open the most recent one, and read the linked exception: class, message, file, and line. Most “random” 500s turn out to be a specific input shape — a null relation, an unexpected enum value, a third-party API returning a different payload — and the recorded request shows you the exact input that triggered it.
Debug From the Terminal: Telescope 5.24’s New Commands
Telescope 5.24, released in September 2026, adds two Artisan commands for reading recorded entries without opening the dashboard — genuinely useful when you are SSH’d into a server or working inside a coding agent:
php artisan telescope:list request
php artisan telescope:list exception --limit=5
php artisan telescope:list request --tag=Auth:42
telescope:list prints a table with columns suited to the entry type — requests get UUID, method, URI, status, duration, and time; queries, jobs, cache operations, logs, mail, commands, and HTTP client calls each get their own layout. Omit the type for a mixed list. Pages hold 20 entries by default, and a full page ends with a --before cursor for the next set.
php artisan telescope:show latest:request
php artisan telescope:show latest:exception
php artisan telescope:show 9d90e4f0-1a15-4f6a-9cca-2e95d70d8d9f
telescope:show prints an entry’s details plus the rest of its batch. In the batch table, SLOW marks queries above the configured threshold and DUP marks queries that share an SQL pattern — a fast starting point for N+1 checks. Trim a large batch with --type=query,cache, print long SQL in full with --full, and get machine-readable output with --json for scripts:
php artisan telescope:show latest:request --type=query,cache
php artisan telescope:list request --json --limit=50 | jq '.[] | select(.content.response_status >= 500)'
The same release ships a Telescope debugging skill for Laravel Boost, so coding agents can run these commands, read the batch, and finish with a specific query or a file and line rather than a symptom. The 5.24 release also cancels stale dashboard requests during navigation, so the screen you are looking at no longer gets replaced by a late response from the screen you just left.
Running Telescope Safely Beyond Local
Sometimes you need Telescope data from staging or a production incident. Three controls make that safe:
1. Lock the Dashboard With a Gate
By default, the /telescope dashboard is only accessible in the local environment. In any other environment, access is controlled by the viewTelescope gate in app/Providers/TelescopeServiceProvider.php. Restrict it to specific people, not roles you might hand out loosely:
protected function gate(): void
{
Gate::define('viewTelescope', function (User $user) {
return in_array($user->email, [
'you@example.com',
]);
});
}
Anyone who fails the gate gets a 403. Never leave the default permissive gate in a non-local environment.
2. Filter What Gets Recorded
Recording everything in production is a storage and privacy problem: Telescope entries can contain request payloads, headers, and user data. Use Telescope::filter to keep only high-signal entries outside local development — reportable exceptions, slow queries, failed jobs, and entries with monitored tags — and drop the rest:
use Laravel\Telescope\Telescope;
use Laravel\Telescope\IncomingEntry;
Telescope::filter(function (IncomingEntry $entry) {
if ($this->app->environment('local')) {
return true;
}
return $entry->isReportableException() ||
$entry->isSlowQuery() ||
$entry->hasMonitoredTag();
});
3. Prune Relentlessly
Without pruning, the telescope_entries table grows fast — a busy app can pile up millions of rows. Schedule the prune command daily; by default it deletes entries older than 24 hours, and --hours sets a longer window:
// routes/console.php
use Illuminate\Support\Facades\Schedule;
Schedule::command('telescope:prune')->daily();
Schedule::command('telescope:prune --hours=48')->daily(); // keep 48 hours instead
Use only one of those two lines — the second replaces the first if you want longer retention. And if you only need Telescope for a debugging session, remember to turn it off again: set TELESCOPE_ENABLED=false or remove the provider registration when the session ends.
Telescope vs Debugbar vs Pulse: Which Tool for Which Job
Telescope is not the only Laravel debugging tool, and picking the wrong one wastes time. Laravel Debugbar adds a floating toolbar to each page with that page’s queries and timings — faster for a quick glance at one page, but it only shows the current page and nothing about jobs, mail, or past requests. Laravel Pulse is for production monitoring over time: trends, slow endpoints, slow queries, and queue health across days. Telescope sits between them: deep, per-operation debugging with history — the tool you open when something already went wrong and you need the full story. For day-to-day local work, Telescope and Debugbar complement each other; for production trends, Pulse (or an external APM) is the right call, with Telescope reserved for short, filtered incident sessions.
Seven Mistakes to Avoid
- Installing without
--devand forgetting the provider. Production deploys with--no-devwill crash on the missing class. Use the local-only setup above. - Leaving the dashboard open in staging. The default gate allows local only — but if you edited the gate loosely, staging data (including real user payloads) is exposed. Keep the allow-list tiny.
- Never scheduling prune. The table grows silently until it hurts database performance. Schedule it on day one.
- Recording everything in production. Payloads and headers in Telescope entries are a data-protection liability. Filter aggressively outside local.
- Debugging only the query tab. A slow query is often a symptom; the request batch shows the code path, the logs, and the cache behaviour around it. Read the whole batch.
- Ignoring the
DUPmarker. Repeated query patterns are the N+1 signature. Fix the eager loading before optimising any single query. - Using Telescope as your only monitoring. It records what happened, it does not alert you. Pair it with real monitoring for production — Telescope is for diagnosis, not for waking you up.
Your First Telescope Session: A 10-Minute Checklist
- Install with
--dev, runtelescope:installandmigrate, and apply the local-only provider setup. - Open
/telescopeand load your app’s slowest page. - Open the request, read its batch, and count the queries — fix any N+1 you find.
- Trigger a queued job and watch it in the Jobs tab, then check the Mail tab for its notification.
- Try
telescope:show latest:requestfrom the terminal to see the same batch without the browser. - Schedule
telescope:prunedaily before you forget.
That is the whole workflow. Telescope does not make bugs disappear — it makes them visible, which is the part that usually takes the longest. If you have ever spent an afternoon guessing why a page is slow or a job vanished, the next one will take ten minutes.
Further Reading & References
- Laravel Telescope — official Laravel 13.x documentation (installation, local-only setup, pruning, dashboard authorization, filtering, watchers)
- Artisan Debugging Commands in Laravel Telescope 5.24.0 — Laravel News (telescope:list / telescope:show, batch markers, JSON output, September 2026 release)
- Laravel Telescope Guide: Debug Requests, Queries and Jobs — LaraCopilot (setup, watchers, debugging workflows, September 2026)
- How to Install and Configure Telescope in Laravel — CodeWolfy (authorization gate, watcher configuration, pruning schedule)
- How to Set Up & Use Laravel Telescope for Debugging and Monitoring — DEV
- Laravel Telescope: See What Happens Inside Your Application — Akram Dev
- How to Speed Up Laravel Queries: 10 Fixes to Try Before You Upgrade Your Server — HowToShipIt
- How to Run Laravel Queue Workers in Production with Supervisor — HowToShipIt
All commands, config snippets, and feature claims in this post were verified against the official Laravel 13.x Telescope documentation and the Telescope 5.24.0 release notes on 27 October 2026.



