需要设置在php-fpm的php.ini中设置
xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_port = 9003 zend_extension=xdebugvscode配置
确保vscode的监听端口和xdebug remote port一样
xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_port = 9003 zend_extension=xdebugvscode配置