温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

sublime+xdebug-client+xdebug-helper本地调试

发布时间:2020-07-28 11:25:56 来源:网络 阅读:1267 作者:Lee_吉 栏目:web开发
  1. 软件下载:
    a. xdebug扩展:
    https://xdebug.org/download.php

    b. xdebug-client(sublime):

    xdebug client

    c. xdebug-helper(chrome):

    https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc
  2. 安装xdebug:
    a. 下载:
    git  clone  git://github.com/xdebug/xdebug.git

    b. 安装:
    b-1. 进入目录:

    cd  xdebug

    b-2. 生成编译文件:

    phpize

    b-3. 编译:

    ./configure  --enable-xdebug  --with-php-config=/usr/local/php/bin/php-config

    b-4. 安装:

    make  &&  make  install
  3. 配置:
    a. php.ini:
    [xdebug]
    zend_extension="C:\assembly\appserv\php5\ext\php_xdebug-2.5.3-5.6-vc11.dll"
    xdebug.remote_enable = 1
    xdebug.remote_host = "localhost"
    xdebug.remote_port = 9000
    xdebug.remote_handler = "dbgp"
    xdebug.remote_mode = req
    xdebug.remote_connect_back = 0

    sublime+xdebug-client+xdebug-helper本地调试
    b. Xdebug.sublime-settings(sublime):

    {
    "super_globals": true,
    "close_on_stop": true,
    "ide_key": "web"
    }

    sublime+xdebug-client+xdebug-helper本地调试
    c. xdebug.sublime-project(sublime):

    {
    "folders":
    [
        {
            "path": "."
        }
    ],
    "settings":
    {
        "xdebug":
        {
            "close_on_stop": true,
            "super_globals": true,
            "url": "http://localhost"
        }
    }
    }

    d. xdebug-helper(chrome):

    other--web

    sublime+xdebug-client+xdebug-helper本地调试

  4. 调试:
    a. 添加断点:
    ctrl  +  F8

    sublime+xdebug-client+xdebug-helper本地调试
    b. 开启:
    sublime+xdebug-client+xdebug-helper本地调试
    c. 跳到下一个断点:
    sublime+xdebug-client+xdebug-helper本地调试

  5. 常用快捷键:
    a. 打断点:
    ctrl  +  F8

    b. 断开调试:

    ctrl  +  shift  +  F9

    c. 跳到下一个断点:

    ctrl  +  shift  +  F5
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI