Support the ongoing development of Laravel.io →
Installation Configuration

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...

Last updated 3 years ago.
0

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.

Last updated 3 years ago.
0

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

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

guedressel guedressel Joined 22 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.