How to configure debug mode with PhpStorm

旧巷老猫 提交于 2021-01-29 06:00:35

问题


I'm configured debug mode like following with PhpStorm and php.ini .

  1. PHP Buillt-in Web Server Settings
 HOST: localhost 
 PORT: 9000
 Document root: [Project root path]
 Interpreter options: artisan serve
  1. /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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!