LaravelPackages.net
Acme Inc.
Toggle sidebar
crhg/laravel-serve-xdebug

add serve:xdebug artisan command

1.158
1
v1.0.1
About crhg/laravel-serve-xdebug

crhg/laravel-serve-xdebug is a Laravel package for add serve:xdebug artisan command. It currently has 1 GitHub stars and 1.158 downloads on Packagist (latest version v1.0.1). Install it with composer require crhg/laravel-serve-xdebug. Discover more Laravel packages by crhg or browse all Laravel packages to compare alternatives.

Last updated

SUMMARY

Built-in server command with xdebug option available

INSTALL

composer require --dev crhg/laravel-serve-xdebug

DESCRIPTION

Once installed, a new artisan command serve:xdebug is added.

This is almost the same as the original serve command, but inherits the option to configure the xdebug related settings given to PHP when it starts up to the built-in server. This makes debugging in combination with PhpStorm etc. easier.

Example of use with PhpStorm

Add the setting to launch artisan serve:xdebug using 'Run → Edit Configurations' menu.

  • Add 'PHP Script' with '+'
  • File: -- Select the artisan command script
  • Arguments: -- Set serve:xdebug

After that, you can use the debugger by specifying the setting by Run → Debug and activating the built-in server.

Remember to start listening for PHP debug connection. (It will be toggled with the icon like a telephone on the top-right)

Star History Chart