PHP Debugger: Agentic zero-overhead debugging f...

PHP Debugger: Agentic zero-overhead debugging for PHP

A lightweight, powerful debugger that doesn't slow you down. Built for you and your AI agents.

Carlos Granados

November 27, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

16 slides
  1. PHP Debugger Agentic zero-overhead debugging for PHP A lightweight, powerful

    debugger that doesn't slow you down. Built for you and your AI agents. Free and Open Source PHP 8.2+
  2. PHP Debugger About us [Photo] Roman Pronskiy Carlos Granados Former

    Executive director of the PHP Foundation. Former head of PhpStorm at Jetbrains PHP expert with more than 20 years experience. Maintainer of the Behat BDD testing tool Creator of the initial idea and first implementation [Photo] Main Maintainer 2
  3. PHP Debugger What is PHP Debugger? A fork of Xdebug

    Step debugging, and nothing else Near-zero overhead when idle Built for AI agents 3
  4. PHP Debugger Who used dd() or var_dump() this week? dd($order);

    Edit. Run. Read. Move it. Run it again. 4
  5. PHP Debugger Why we stopped using debuggers THEN THEN THEN

    Hard to install Slow on every request Off when you needed it NOW NOW NOW One command, or one Dockerfile line Near-zero overhead when idle Always on, no trigger to set 5
  6. PHP Debugger One job, done well No profiler No code

    coverage ~1% overhead on a typical web request with no client connected No tracing SITUATION C O ST No client connected Near zero Client connected, nothing set Low Stepping through code the work you asked for Real 6
  7. PHP Debugger Install in one command $ curl -fsSL https://github.com/php-debugger/installer/releases/latest/download/install.sh

    | sh TERMINAL DOCKERFILE # self-contained PHP with the debugger built in php-debugger install # before FROM php:8.6-fpm # after FROM phpdebugger/php:8.6-fpm # or keep your PHP and add the extension php-debugger install --extension-only Drop-in for the official images, PHP 8.2–8.6 cli fpm apache zts alpine 7
  8. PHP Debugger Nothing to configure, nothing to migrate Keep these

    — they still work xdebug.* settings XDEBUG_* triggers XDEBUG_* environment variables xdebug_*() functions Delete these lines PHP.INI zend_extension=xdebug.so xdebug.mode=debug xdebug.start_with_request=yes Xdebug can't be loaded alongside it, and the other two are already the defaults. Your IDE's existing debug configuration 8
  9. PHP Debugger Everything you expect from a debugger Line, conditional

    and exception breakpoints Step into, over and out Inspect variables across the call stack Watch expressions and live value edits Always on — no trigger to set Near-zero overhead when idle 9
  10. PHP Debugger Works with your editor PhpStorm VS Code Any

    other editor PHP debugging built in With the PHP Debug extension Anything that speaks DBGp No plugin. No adapter. No new configuration. Your editor's Listen button is the switch: listen when you debug, stop when you're done. 10
  11. PHP Debugger How agents debug today Guess Print Reads the

    code and reasons about what should happen. Breaks when the bug is in the data, the request, the config, or the order things actually ran. Adds var_dump() and log lines, runs, reads, repeats. Edits code you didn't ask it to touch and leaves the cleanup for later. A long, iterative process that can use lots of tokens. 11
  12. PHP Debugger DBGP Client: a real debugger for your agent

    W HA T T HE AG E N T G E T S $ claude mcp add dbgp -- dbgp mcp Any other MCP agent: Breakpoints Run and step Stack and variables { "mcpServers": { "dbgp": { "command": "dbgp", "args": ["mcp"] } } Source Output and warnings } Eval and set variable Path mappings 12
  13. PHP Debugger What a session looks like YOU The total

    on the checkout page is wrong when a coupon is applied. Debug the request to /checkout and find out why. 1 2 Adds a breakpoint and starts listening Sends the request in the background 3 PHP Debugger connects; the agent runs to the breakpoint 4 Reads the stack, variables, output and warnings; steps through 5 Reports what it found, removes its breakpoints, stops listening 13
  14. PHP Debugger Why it pairs well with PHP Debugger MCP

    DBGp AI agent DBGP Client Claude Code or any other MCP agent Running on your machine Reading and editing — PHP runs at full speed port 9003 PHP Debugger In the PHP script or request being debugged Debugging — dbgp listens only now Agents debug in short bursts. The debugger costs almost nothing in between. 14
  15. PHP Debugger Recap Agent Ready Fast & Lightweight Let AI

    agents set breakpoints, step and inspect your code. Near-zero overhead when idle. Fully Compatible Always Available Your existing settings and IDE setup keep working. Leave it on. It costs almost nothing until you debug. 15

More Decks by Carlos Granados

Other Decks in Programming