alkhvalko/symfony-roadrunner-dumper
dd() with \dev\dd() to work seamlessly in async/non-blocking Roadrunner environments, where traditional dd() fails due to output buffering conflicts.VarDumper component, which is not directly available in Laravel without additional abstraction (e.g., via symfony/var-dumper or a bridge like laravel-debugbar).dd(), dump()) use Laravel’s Debugbar or Symfony’s VarDumper under the hood, but the package’s Roadrunner-specific logic (e.g., worker error handling) is Symfony-centric.
symfony/var-dumper), this package could be adapted, but Roadrunner integration would still require custom logic.worker error: invalid data found in the buffer is tied to Symfony’s request lifecycle.dd() relies on facade/ignition or laravel-debugbar, which may conflict with Symfony’s VarDumper.laravel-debugbar or barryvdh/laravel-debugbar for debugging, which already handle Roadrunner in some cases.tightenco/ziggy, spatie/laravel-debugbar) that already support Roadrunner?VarDumper as a core dependency, or is Laravel’s ecosystem a hard constraint?stacked-dumper-laravel or similar been evaluated for Roadrunner compatibility?dd() wrapper (e.g., using fwrite(STDERR)) suffice for Roadrunner’s needs?--dev mode)?facade/ignition or spatie/laravel-debugbar; this package replaces dd() with Symfony’s VarDumper.kernel.terminate).dev namespace or bundle structure.| Step | Action | Risk | Notes |
|---|---|---|---|
| 1 | Assess Roadrunner Need | Low | Confirm if Roadrunner is mandatory or if existing Laravel debug tools suffice. |
| 2 | Evaluate Alternatives | Medium | Test stacked-dumper-laravel or laravel-debugbar with Roadrunner. |
| 3 | Symfony Hybrid Approach | High | If Roadrunner is critical, consider a Symfony micro-app for debugging routes. |
| 4 | Custom Laravel Dumper | Medium | Fork the package or build a minimal dumper using symfony/var-dumper + Roadrunner’s STDERR handling. |
| 5 | Fallback to STDERR |
Low | Replace dd() with a custom function that writes to STDERR (Roadrunner-compatible). |
composer.json).\dev\dd() to a Laravel service provider.VarDumper or using Laravel’s Debugbar.invalid data in buffer errors).illuminate/http) may not align.dd() fix.symfony/var-dumper dependency to check for conflicts.\dev\dd().set_error_handler for worker errors).dd() calls in critical paths with \dev\dd().laravel-debugbar or STDERR-based dumping.VarDumper.--dev only, but custom logic may leak into production if not guarded.VarDumper: May introduce version conflicts with Laravel’s phpunit or debugbar.dd() failures requires worker logs (rr get-worker-errors).telescope) may provide better support.error_log() or fwrite(STDERR, ...).rr dump-servers to inspect worker state.blackfire.io.dd() is only used in development.dd() in production code), could block workers or fill logs.dd() could hang if not properly routed to STDERR.| Scenario | Impact | Mitigation | |--------
How can I help you explore Laravel packages today?