一切运行正常,但是今天更新后,我无法正常使用Xdebug。是的,它会停止@断点,但无法在VScode中以逐步模式(f10)继续。
这些是launch.json中的设置:
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"localSourceRoot": "/home/gfxking/Desktop/CurrentDev/SCRIPTS/DEV",
"serverSourceRoot": "/var/www/vhosts/dev/httpdocs"
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
服务器输出:
[root@server ~]# /opt/plesk/php/7.1/bin/php -vPHP 7.1.25 (cli) (built: Dec 7 2018 12:12:21) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.1, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.1.25, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans
服务器上的50-xdebug.ini:
zend_extension=xdebug.so
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=192.168.1.131
xdebug.remote_port=9000
xdebug.remote_connect_back=1
xdebug.remote_log=/var/log/xdebug.log
xdebug.profiler_enable_trigger=On
xdebug.profiler_output_dir=/tmp
xdebug.max_nesting_level=200
也许其他人已经经历过这种情况,并且知道今天突然发生了什么变化。
答案 0 :(得分:1)
原来,监视列表中的mysql函数导致此功能不起作用。删除了手表项,终于可以运行了!