crhg/laravel-serve-xdebug

add serve:xdebug artisan command
1,159 1
Install
composer require crhg/laravel-serve-xdebug
Latest Version:v1.0.1
PHP:^7.1.3
License:MIT
Last Updated:Jul 11, 2020
Links: GitHub  ·  Packagist
Maintainer: crhg

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)

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

408,553,772 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

387,976,821 4,658