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

cash's avatar
Level 5

Debuggin Laravel in PhpStorm

Hi!

What is the most straightforward way to debug a Laravel app in phpstorm? I'm running it like this:

/opt/homebrew/Cellar/php/8.3.0/bin/php -dxdebug.mode=debug -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1 /Users/path/to/artisan serve

And PhpStorm seems to ignore my breakpoints.

$ php --version
PHP 8.3.0 (cli) (built: Nov 21 2023 14:40:35) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.0, Copyright (c) Zend Technologies
    with Xdebug v3.3.0, Copyright (c) 2002-2023, by Derick Rethans
    with Zend OPcache v8.3.0, Copyright (c), by Zend Technologies
0 likes
0 replies

Please or to participate in this conversation.