Hello!
I'm used to debug PHP scripts in PHPStorm via xdebug. How could I debug Laravel with xdebug?
Currently my attempt is to start the PHP script "artisan serve" via PHPStorm - what actually works fine, but the debugger only stops if I put a break point in start.php while booting Laravel. Why are all other break points ignored??
BTW: I wanted to tag this question with something like "development" oder "dev" - but there's no tag for that...
Anybody would like to answer this question?
My guess is that you'll need to check out which php artisan uses:
$ which php
/usr/local/opt/php55/bin/php
And then figure out where is the config files, and also how to install the xdebug extension, once it's installed and configured I guess artisan serve
will automatically use xdebug (since it's in the php config) and then all you'll have to do is use PHPStorm to debug your app like you'd do with any other app (it's pretty easy once you've got XDebug working hehe)
Hope this helps, I'd also like to know a second opinion on this though.
Yeah, you must enable xdebug in the php config, then it works fine. On Windows: http://www.wikihow.com/Configure-XDebug-in-XAMPP-(1.7.2/Later)-on-Windows
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community