我最近在此服务器规格上升级到 Xdebug 3.0.1:
- Ubuntu 服务器 20.04
- PHP 7.3.24
- Xdebug 3.0.1
Xdebug 工作正常,在主配置文件中我有以下设置:
- /etc/php/7.3/cgi/conf.d/20-xdebug.ini
zend_extension=xdebug.so
- /etc/php/7.3/cgi/conf.d/21-xdebug-mgs.ini
xdebug.mode = 调试
然后在 .user.ini 我的网站根文件夹中
[xdebug]
xdebug.client_host = "10.0.0.2"
xdebug.client_port = 9001
xdebug.discover_client_host = false
xdebug.log = '/var/www/clients/client1/web2/web/j39vm36/administrator/logs/xdebug.log'
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.output_dir = '/var/www/clients/client1/web2/web/j39vm36/administrator/logs/'
xdebug.var_display_max_depth = -1
xdebug.var_display_max_children = -1
xdebug.var_display_max_data = -1