Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahmadbadpey's avatar

How to debug php artisan serve in PHPStorm?

I am using PHPStorm for develop my PHP web pages. All work fine with my Apache Server, XDebug, and a simple web PHP project. No problem.

But, when I try to debug a Laravel 5.1 Web Project using php artisan serve, I can't debug the breakpoints. It's like the php artisan serve use another server... and on my PHPStorm, I always see:

Waiting for incoming connection with ide key '(randomNumberHere)'

I have configured all in PHPStorm (enabling remote debug, correct port, etc.), and with "normal" PHP projects all works fine.

Can someone tell me if I need to change something?

Thanks!

0 likes
1 reply
glandre's avatar

You should take a look at the php.ini file loaded by your php-cli, since it's the one used by artisan. Use the command 'php -i' and find informations about the ini files loaded, than compare with the apache ini files, to see if you can tell what is lacking.

Please or to participate in this conversation.