Skip to content
Researched developer tool comparisonsPrices dated · vendor sources linked · no star ratings
Search

Stage 01 · Write · Researched comparison

Best PHP Debuggers in 2026

Xdebug is the first pick for most teams. It is free, open source, and works with any editor that speaks the DBGp protocol, so it fits existing setups without a licence. If you want a debugger built into an IDE, PhpStorm's debugger is the most complete paid option. For quick inspection without stepping through code, Ray by Spatie and Symfony VarDumper are lighter alternatives that dump values to a separate window or the browser.

By
Published 27 Nov 2026 · 7 tools compared

We run no ads and no affiliate links at launch. The order of a list follows our published method. See how we score.

Prices are the starting prices vendors list publicly. Plans change, so confirm the current price on the vendor page before you buy.

Key takeaways

  • Xdebug is free and open source, and it is the debugging engine most PHP IDEs and editors connect to.
  • PhpStorm bundles a full visual debugger but requires a paid licence; a free trial is available.
  • The VS Code PHP Debug extension is free and open source, and it relies on Xdebug or Zend Debugger as the engine.
  • Ray, Symfony VarDumper and Laravel Telescope are inspection tools, not step debuggers, and each has limits on what it shows.

Who each pick is for

  • Teams that need a free step debugger across editorsXdebug
  • Developers who want a debugger built into a full IDEPhpStorm
  • VS Code users who want a free visual debuggerVS Code PHP Debug
  • Developers who want fast value dumps in a desktop appRay by Spatie
  • Symfony and standalone PHP projects that need readable dumpsSymfony VarDumper
  • Laravel teams that need request and query insightLaravel Telescope
  • Terminal users who want a bundled step debuggerphpdbg

Comparison

The 7 tools at a glance
ToolBest forStandout featureListed starting priceFree plan or trial
1XdebugTeams that need a free step debugger across editorsWorks with any DBGp-compatible clientFree (open source)Free plan
2PhpStormDevelopers who want a debugger built into a full IDEVisual debugger with inline values and a full call stackSee vendor pricing pageFree trial (30 days)
3VS Code PHP DebugVS Code users who want a free visual debuggerFree and open sourceFree (open source)Free plan
4Ray by SpatieDevelopers who want fast value dumps in a desktop appSends dumps to a separate window without changing page outputSee vendor pricing pageFree trial (N days)
5Symfony VarDumperSymfony and standalone PHP projects that need readable dumpsReplaces var_dump with structured, collapsible outputFree (open source)Free plan
6Laravel TelescopeLaravel teams that need request and query insightShows requests, queries, exceptions, jobs and logs in one dashboardFree (open source)Free plan
7phpdbgTerminal users who want a bundled step debuggerShips with PHP, so no extension installFree (open source)Free plan

How we picked

We picked tools that genuinely debug or inspect PHP during development, then checked fit for the job, supported platforms, price and licence, and main limits. We also looked at how each tool handles data, since dump tools can expose request contents. Sources are vendor pages, official documentation and project repositories. Prices change, so confirm current numbers on the vendor site before you buy.

The tools, one by one

01

Xdebug

Best for teams that need a free step debugger across editors

Visit xdebug.org
Xdebug homepage
Xdebug homepage, captured Nov 2026

What it is and where it fits

Xdebug is a PHP extension that adds step debugging, stack traces, function traces and profiling. Its debugger speaks the DBGp protocol, so PhpStorm, VS Code and many other clients can connect to it. You install it as a PHP extension and enable the debug mode in php.ini, then set a breakpoint in your editor and start a session.

It runs wherever PHP runs: local machines, containers and remote servers, as long as the extension is installed and the port is reachable. The project is open source and free, with no paid tier. The main cost is setup time. Step debugging adds overhead, so most developers keep it off by default and turn it on per request with a trigger.

Skip Xdebug if you only need to print values during development and do not want to manage an extension and port configuration.

Standout: Works with any DBGp-compatible client

Pricing pointer

Free (open source), as listed by the vendor (Xdebug website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Works with any DBGp-compatible client
  • strong stack traces and profiling support

Drawbacks

  • Configuration takes care
  • the overhead is noticeable when step debugging is on

Skip it if this limit matters to you: configuration takes care.

Verdict. A sensible pick for teams that need a free step debugger across editors.

Alternatives in this guide: PhpStorm, VS Code PHP Debug, Ray by Spatie

02

PhpStorm

Best for developers who want a debugger built into a full IDE

Visit jetbrains.com
PhpStorm homepage
PhpStorm homepage, captured Nov 2026

What it is and where it fits

PhpStorm is a commercial IDE with a debugger built in. It connects to Xdebug or Zend Debugger and shows breakpoints, variable values, watches and the call stack in the editor. Zero-configuration debugging handles the common local setup, and you can configure path mappings for containers and remote servers.

It runs on Windows, macOS and Linux. Licensing is per user, with individual and company plans, and a free trial is available. JetBrains publishes current prices on its site. The debugger is included in the IDE licence, so there is no separate debugger fee.

Skip PhpStorm if you already have an editor you like and only need debugging. Xdebug plus the VS Code extension covers that case for free.

Standout: Visual debugger with inline values and a full call stack

Pricing pointer

See vendor pricing page, as listed by the vendor (PhpStorm website). Confirm the current plan price before you buy.

Free trial (30 days). Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Visual debugger with inline values and a full call stack
  • zero-configuration debugging for common setups

Drawbacks

  • Paid licence
  • heavier than a plain editor

Skip it if this limit matters to you: paid licence.

Verdict. A sensible pick for developers who want a debugger built into a full IDE.

Alternatives in this guide: Xdebug, VS Code PHP Debug, Ray by Spatie

03

VS Code PHP Debug

Best for vS Code users who want a free visual debugger

Visit github.com
VS Code PHP Debug homepage
VS Code PHP Debug homepage, captured Nov 2026

What it is and where it fits

This is the PHP Debug extension for Visual Studio Code, maintained under the Xdebug organization. It connects VS Code to Xdebug or Zend Debugger and adds breakpoints, step controls, variable inspection and a call stack view inside the editor. It is free and open source.

It runs wherever VS Code runs: Windows, macOS and Linux. The extension is only the client. You still need Xdebug installed in PHP and a launch configuration in the workspace. Path mappings handle containers and remote hosts.

Skip it if you do not use VS Code, or if you want a debugger that works without editing JSON configuration files.

Standout: Free and open source

Pricing pointer

Free (open source), as listed by the vendor (VS Code PHP Debug website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Free and open source
  • integrates breakpoints and variable views into VS Code

Drawbacks

  • Needs Xdebug or Zend Debugger installed
  • configuration is manual

Skip it if this limit matters to you: needs Xdebug or Zend Debugger installed.

Verdict. A sensible pick for VS Code users who want a free visual debugger.

Alternatives in this guide: Xdebug, PhpStorm, Ray by Spatie

04

Ray by Spatie

Best for developers who want fast value dumps in a desktop app

Visit github.com
Ray by Spatie homepage
Ray by Spatie homepage, captured Nov 2026

What it is and where it fits

Ray is a desktop app that receives debug output from your code. You call ray() in PHP and values appear in the Ray window instead of the page or a log file. It handles strings, arrays, objects, queries and timing, and it works with frameworks including Laravel and Symfony.

The PHP package is free to install. The desktop application is a paid product with a trial, and Spatie publishes current pricing on its site. It runs on Windows, macOS and Linux.

Ray does not pause execution or step through code, so it does not replace Xdebug for logic errors. It is best for quick inspection when you want to see a value without breaking the request.

Standout: Sends dumps to a separate window without changing page output

Pricing pointer

See vendor pricing page, as listed by the vendor (Ray by Spatie website). Confirm the current plan price before you buy.

Free trial (N days). Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Sends dumps to a separate window without changing page output
  • works across PHP, JavaScript and other languages

Drawbacks

  • Not a step debugger
  • the desktop app is a paid product

Skip it if this limit matters to you: not a step debugger.

Verdict. A sensible pick for developers who want fast value dumps in a desktop app.

Alternatives in this guide: Xdebug, PhpStorm, VS Code PHP Debug

05

Symfony VarDumper

Best for symfony and standalone PHP projects that need readable dumps

Visit symfony.com
Symfony VarDumper homepage
Symfony VarDumper homepage, captured Nov 2026

What it is and where it fits

VarDumper is a Symfony component that provides the dump() function as a better var_dump. It formats arrays and objects into readable, collapsible output and can write to the browser, the console or a file. The dump server can collect output from CLI scripts into one place.

It is free and open source, installed with Composer, and works in any PHP project, not only Symfony. It runs on any platform that runs PHP.

VarDumper is an inspection tool. It does not set breakpoints or pause execution. Use it alongside Xdebug when you want readable output, and skip it if you need a real step debugger.

Standout: Replaces var_dump with structured, collapsible output

Pricing pointer

Free (open source), as listed by the vendor (Symfony VarDumper website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Replaces var_dump with structured, collapsible output
  • usable outside Symfony

Drawbacks

  • Output goes to the page or console, not a separate debugger
  • no step control

Skip it if this limit matters to you: output goes to the page or console, not a separate debugger.

Verdict. A sensible pick for symfony and standalone PHP projects that need readable dumps.

Alternatives in this guide: Xdebug, PhpStorm, VS Code PHP Debug

06

Laravel Telescope

Best for laravel teams that need request and query insight

Visit github.com
Laravel Telescope homepage
Laravel Telescope homepage, captured Nov 2026

What it is and where it fits

Telescope is a Laravel package that records what happens during a request: queries, exceptions, jobs, mail, logs and more, shown in a dashboard at a local route. It is free and open source and installs with Composer.

It runs in a Laravel application on any platform. Because it stores request data, most teams limit it to local and staging environments and gate access. It does not step through code.

Skip Telescope if you are not on Laravel, or if you need to pause execution and inspect the call stack.

Standout: Shows requests, queries, exceptions, jobs and logs in one dashboard

Pricing pointer

Free (open source), as listed by the vendor (Laravel Telescope website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Shows requests, queries, exceptions, jobs and logs in one dashboard
  • integrates with Laravel out of the box

Drawbacks

  • Laravel only
  • it records data, so it should not run in production without care

Skip it if this limit matters to you: laravel only.

Verdict. A sensible pick for laravel teams that need request and query insight.

Alternatives in this guide: Xdebug, PhpStorm, VS Code PHP Debug

07

phpdbg

Best for terminal users who want a bundled step debugger

Visit php.net
phpdbg homepage
phpdbg homepage, captured Nov 2026

What it is and where it fits

phpdbg is a debugger bundled with PHP itself. It offers a command-line interface with breakpoints, stepping and stack inspection, and it does not need a separate extension install. It is free and part of PHP.

It runs on the command line on any platform where PHP is built with phpdbg support. It suits scripts, test runs and CI environments where a terminal is the only interface.

It has no graphical client and fewer features than Xdebug, and it is not the tool most editors connect to. Skip it if you want a visual debugger inside an IDE.

Standout: Ships with PHP, so no extension install

Pricing pointer

Free (open source), as listed by the vendor (phpdbg website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Ships with PHP, so no extension install
  • works in a terminal and in CI

Drawbacks

  • Command-line interface only
  • fewer features than Xdebug

Skip it if this limit matters to you: command-line interface only.

Verdict. A sensible pick for terminal users who want a bundled step debugger.

Alternatives in this guide: Xdebug, PhpStorm, VS Code PHP Debug

Who should use what

If you want a free step debugger that works with your current editor, start with Xdebug. If you work in PhpStorm and want debugging built into the IDE, its debugger is the most complete paid option. If you use VS Code, add the PHP Debug extension and connect it to Xdebug. If you mostly need to see values quickly, Ray or Symfony VarDumper will save time, and Laravel teams get request and query history from Telescope. Terminal and CI users can reach for phpdbg without installing anything extra.

Questions to settle before you buy

What to check before you buy

  • Confirm your editor or IDE supports the debugger's protocol, such as DBGp for Xdebug.
  • Check that the debugger works with your PHP version and with containers or remote hosts if you use them.
  • Decide whether you need step debugging or only value dumps, since they solve different problems.
  • Review what a dump or recording tool stores, and keep it out of production.
  • Confirm the current price and licence terms on the vendor site before buying.

FAQ

Do I need Xdebug to debug PHP?

Not always. phpdbg ships with PHP and works in a terminal. Most visual debuggers, including PhpStorm and the VS Code extension, connect to Xdebug or Zend Debugger, so Xdebug is the common choice for step debugging in an editor.

Is there a free PHP debugger?

Yes. Xdebug, the VS Code PHP Debug extension, Symfony VarDumper, Laravel Telescope and phpdbg are all free or open source. PhpStorm and the Ray desktop app are paid, and both offer a trial.

What is the difference between a debugger and a dump tool?

A debugger pauses execution and lets you step through code and inspect the call stack. A dump tool prints values without stopping the request. Ray, VarDumper and Telescope are dump or inspection tools, while Xdebug, phpdbg and the IDE debuggers step through code.

Can I debug PHP running in Docker?

Yes, if the debugger port is reachable and path mappings are set. Xdebug needs its port exposed from the container, and IDE clients need a mapping between container paths and local paths. PhpStorm and the VS Code extension both support this.

Is Zend Debugger still an option?

Zend Debugger is legacy. Some clients still list support for it, but new setups should use Xdebug. Check your editor's current documentation before relying on Zend Debugger.

Sources we checked

Method: how we score · editorial policy.

  1. Xdebug (official site)
  2. PhpStorm (official site)
  3. VS Code PHP Debug (official site)
  4. Ray by Spatie (official site)
  5. Symfony VarDumper (official site)
  6. Laravel Telescope (official site)
  7. phpdbg (official site)

Change log. First published 27 Nov 2026.