Skip to content

Instantly share code, notes, and snippets.

@carbontwelve
Last active June 24, 2021 06:10
Show Gist options
  • Save carbontwelve/9089985 to your computer and use it in GitHub Desktop.
Save carbontwelve/9089985 to your computer and use it in GitHub Desktop.
Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
# Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
php -dxdebug.remote_autostart artisan
#Running phpcs for 5.3:
phpcs -pv --standards= --runtime-set testVersion 5.3 --ignore=*/public/*,*.js,*.css,*/tests/*,*/views/training/* .
@dericlima
Copy link

@hfmikep Thanks sharing this. Yeah @vladan-me, the Arguments are the artisan command that you want to run.
On my case I have some custom job that I need to debug, so for example, if the argument name is myjob:run (php artisan myjob:run) you just need to set myjob:run in the Arguments.

@leanwebstart
Copy link

Thanks... Great when first google search results brings you the answer directly...

@wdmtech
Copy link

wdmtech commented May 18, 2018

I want your babies

@fabianocruzdf
Copy link

Thanks @hfmikep!

@nrnazifi
Copy link

Do you know how can I set it for eclipse? After running the command, PHP debug is run in the Eclipse but does not come on Breakpoints!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment