![]() Update: Good reminder from make sure "Start Listening for PHP Debug Connections" is enabled which you manually need to do if you don't run a PhpStorm configuration with "Debug" server.php just emulates Apache's mod_rewrite functionality. Actually the php artisan serve only purpose is to append the server.php to PHP Built-In Web Server. Now the PHPStorm will execute same command as php artisan serve does with additional interpreter options. Interpreter options: -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1.Check Use route script and select server.php in Laravel projects root directory.Document root: select Laravel's public catalog/directory.Workaround in PHPStorm is to create a Run configuration that calls PHP Built-in Web server directly. You can see the calling of built-in server here. Then these options given by -d are not passed to called PHP Built-in Web server. if you execute from command line: $ php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 artisan serve artisan serve will call PHP Built-in Web Server but does not pass on the php command line options (named interpreter options in PHPStorm). Debugging using php artisan serve does not work unless you have enabled debugging in ini pointed out the reason. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |