Last active
June 24, 2021 06:10
-
-
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...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/* . |
Thanks... Great when first google search results brings you the answer directly...
I want your babies
Thanks @hfmikep!
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
@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.