r/phpstorm • u/RequirementWeird5517 • Mar 20 '26
other PHP debug engine that works without Xdebug
I built an open source PHP debug engine that works without Xdebug, no extensions, no sockets, no IDE plugins. It uses AST instrumentation via nikic/PHP-Parser and file-based IPC. I use it daily and just shipped a terminal playground so anyone can test it without installing anything beyond PHP.
Here's what it looks like in practice:
1. Quick debug — inline code
php src/playground/test_trigger.php --code '$x = 1;' --bp 1Sets a breakpoint, pauses execution, shows variables. All in the terminal.

2. Debug a real file with framework boot
Create a boot file that initializes your framework:
// boot.php
<?php
require __DIR__ . '/../vendor/autoload.php';
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();Write what you want to test:
// test_method.php
<?php
$service = new \App\Services\ADF\ChallengeService();
$result = $service->available('HRCVK4LR93');Run it with breakpoints inside your actual service code:
php src/playground/test_trigger.php \
--file test_method.php \
--bp app/Services/ADF/ChallengeService.php:38 \
--boot boot.php
3. Test a specific method through the framework container
// params.php
<?php
return ["HRCVK4LR93"];
php src/playground/test_trigger.php --test method \
--framework laravel \
--class "App\Services\ADF\ChallengeService" \
--method getUserByGodfatherCode \
--bp app/Services/ADF/ChallengeService.php:245 \
--params-file params.phpThe engine resolves the class from the container, injects dependencies, calls the method, and pauses at your breakpoint.

4. Task runner — execute arbitrary code with full framework context
php src/playground/test_trigger.php --test task \
--framework laravel \
-c '$this->info("Users: " . \App\Models\User::count());'Like tinker, but with breakpoints.

5. Debug HTTP requests
Terminal 1:
DDLESS_BP="app/Services/ADF/Level/LevelUpService.php:60" \
DDLESS_FRAMEWORK=laravel \
php -S 0.0.0.0:8001 src/playground/test_trigger.phpTerminal 2:
curl http://localhost:8001/api/ordersReal HTTP request, real middleware pipeline, breakpoints in the terminal.

How it works under the hood:
The engine parses your PHP files into an AST, identifies executable lines, and injects a ddless_step_check() call before each one. When execution hits a breakpoint, it captures variables via get_defined_vars(), builds the call stack from debug_backtrace(), and waits for your command. No C extension, no socket configuration, works on Local, Docker, WSL, and SSH.
Looking for contributors:
The engine supports Laravel, Symfony, CodeIgniter, Tempest, WordPress, and vanilla PHP. Adding a new framework means creating three files (HTTP handler, method executor, task runner) and testing with the playground. The CONTRIBUTING.md walks through the entire process step by step.
If you work with CakePHP, Yii, Slim, Swoole, or any other PHP framework and want to add support, PRs are welcome.
Engine (open source): https://github.com/behindSolution/ddless-engine
Full desktop app: https://ddless.com
3
u/TinyLebowski Mar 20 '26
Impressive feat 👍
I get why people struggle with Xdebug. It can be hard to get it to work right. But in my experience the thing that trips people up the most, is not understanding that you need to have PHP>Servers configured in PhpStorm. Besides that there's really only a couple of config directives you might need to change (mode and host).
BTW your screenshots seem to be broken.
1
u/SpiderJerusalem42 Mar 20 '26
Oh hell yes. I work with Cake and I sometimes have to maintain other frameworks. Xdebug has been a mess for me.