spiral / app

Spiral Framework Skeleton HTTP Application: Queue, Console, Cycle ORM
https://spiral.dev/
MIT License
191 stars 20 forks source link

Adding `functions.php` helper with `dd` function #133

Closed msmakouz closed 12 months ago

msmakouz commented 12 months ago

What was changed

Added the ability to use the popular debugging function dd.

#[Route(route: '/', name: 'index')]
public function index(): string
{
    dd('Hello World');

    return $this->views->render('home');
}

Result:

111
butschster commented 12 months ago

Hey @msmakouz, we need to check if var-dumper works with buggregator when utilizing the spiral/dumper package. Let's look into this and ensure everything is set up correctly.