问题
I'm configured debug mode like following with PhpStorm
and php.ini
.
- PHP Buillt-in Web Server Settings
HOST: localhost
PORT: 9000
Document root: [Project root path]
Interpreter options: artisan serve
- /usr/local/etc/php/7.3/conf.d/ext-xdebug.ini
[xdebug]
zend_extension=xdebug.so
#zend_extension="/usr/local/Cellar/php@7.3/7.3.16/pecl/20180731/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port="9000"
IF I execute from Run button with PhpStorm, following messages come up at first page.
/usr/local/Cellar/php@7.3/7.3.16/bin/php -S localhost:9000
-t /Users/xxxx/Works/Projects/sample_server artisan serve
[Tue Mar 31 23:37:15 2020] PHP Notice: Undefined index: argv in /Users/xxx/Works/Projects/sample_server/vendor/symfony/console/Input/ArgvInput.php on line 49
$ php -v
PHP 7.3.16 (cli) (built: Mar 19 2020 11:20:31) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.16, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.16, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.9.4, Copyright (c) 2002-2020, by Derick Rethans
When I run php artisan serve
from command line console, it works well.
What else do I need to do?
Please give me advice.
来源:https://stackoverflow.com/questions/60952181/how-to-configure-debug-mode-with-phpstorm