Php 如何离线安装用于chrome或firefox的xdebug扩展?
我是cakePhp的初学者,我有两台电脑。一个连接到Internet,我可以调试,但另一个未连接,我无法调试Php 如何离线安装用于chrome或firefox的xdebug扩展?,php,firefox,google-chrome-extension,xdebug,Php,Firefox,Google Chrome Extension,Xdebug,我是cakePhp的初学者,我有两台电脑。一个连接到Internet,我可以调试,但另一个未连接,我无法调试 我在本地安装xdebug扩展 甚至我也在本地安装了xdebug for chrome 但我不能调试我的网站,这是一个cakephp网站 在php.ini中,x-debug部分的配置为: [X-Debug] xdebug.remote_enable=1 xdebug.remote_autostart=1 zend_extension=D:\wamp64\bin\php\php7.2.18\
致以最诚挚的问候我可以在vsCode脱机状态下调试cakePHP的关键点是,cake站点第一级中的.vsCode文件夹,在launch.json文件中,其中有一行是:“name”:“Listen for XDebug”,这是您可以在脱机状态下调试的原因,但我如何拥有.vsCode文件夹我遵循以下链接: 其他必要步骤是将适当的dll(php_xdebug-2.9.1-7.2-vc15-x86_64.dll)放入此文件夹:
D:\wamp64\bin\php\php7.2.18\ext,这是我的活动php的扩展文件夹您不需要扩展来触发调试。只需在此处添加
?XDEBUG\u SESSION\u START=您的\u IDE\u KEY\u
,它应该可以工作:)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"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
}
]
}