您的位置:首页 > 其它

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

2018-10-17 04:11 666 查看
  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. 配置:
    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


    b. Xdebug.sublime-settings(sublime):

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


    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
  3. 调试:
    a. 添加断点:
    ctrl  +  F8


    b. 开启:

    c. 跳到下一个断点:

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

    b. 断开调试:

    ctrl  +  shift  +  F9

    c. 跳到下一个断点:

    ctrl  +  shift  +  F5
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sublime+xdebug-clien