Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/260.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何离线安装用于chrome或firefox的xdebug扩展?_Php_Firefox_Google Chrome Extension_Xdebug - Fatal编程技术网

Php 如何离线安装用于chrome或firefox的xdebug扩展?

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\

我是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\ext\php_xdebug-2.9.1-7.2-vc15-x86_64.dll

  • 两台电脑的所有条件都是一样的,唯一不同的是谷歌版本,其中一台连接到互联网的是79.0.3945.130,另一台是74。。。。。。 使用chrome我安装了扩展,但使用fireFox我无法安装edebug扩展

    有人能帮助我如何在本地调试vsCode吗


    致以最诚挚的问候

    我可以在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
            }
        ]
    }