sublime+xdebug-client+xdebug-helper本地调试
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
安装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
配置:
a. php.ini:
[xdebug]zend_extension="C:\assembly\appserv\php5\ext\php_xdebug-2.5.3-5.6-vc11.dll"xdebug.remote_enable = 1xdebug.remote_host = "localhost"xdebug.remote_port = 9000xdebug.remote_handler = "dbgp"xdebug.remote_mode = reqxdebug.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
a. 添加断点:
ctrl + F8
b. 开启:
c. 跳到下一个断点:
a. 打断点:
ctrl + F8
b. 断开调试:
ctrl + shift + F9
c. 跳到下一个断点:
ctrl + shift + F5
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。