VSCode+;Xdebug&x2B;PHP配置
我试图用VScode设置Xdebug,但每当我设置断点时,它都会忽略它 我安装并遵循说明(Windows),我还使用了Xdebug向导,以下是我的配置: Vscode-launch.jsonVSCode+;Xdebug&x2B;PHP配置,php,visual-studio-code,xdebug,vscode-debugger,Php,Visual Studio Code,Xdebug,Vscode Debugger,我试图用VScode设置Xdebug,但每当我设置断点时,它都会忽略它 我安装并遵循说明(Windows),我还使用了Xdebug向导,以下是我的配置: Vscode-launch.json { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000 }, { "name": "Launch currently open script", "type": "php",
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
php.ini
zend_extension = D:\wamp\bin\php\php7.1.16\ext\php_xdebug-2.6.1-7.1-vc14.dll
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_log=D:\wamp\logs\xdebug.log
注意:我找不到任何日志,我可能没有将其设置正确,但我也不知道如何使其工作
php-v
$ php -v
PHP 7.1.16 (cli) (built: Mar 28 2018 21:27:36) ( ZTS MSVC14 (Visual C++ 2015) x8
6 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
谢谢你的阅读 我相信您在
php.ini中可能需要以下内容:
xdebug.remote_connect_back=1
请参阅WPLib框的PHP容器,它肯定可以与XDEBUG和VS代码一起使用。我相信您可能需要在PHP.ini中使用以下内容:
xdebug.remote_connect_back=1
请参阅WPLib框的PHP容器,它肯定可以与XDEBUG和VS代码一起使用