【发布时间】:2016-01-05 22:59:43
【问题描述】:
-
Xdebug 在此 Helpful article 的帮助下安装在 ubuntu 12.04 上,带有 sublime text build 3083
- 在 xdebug.ini 文件中添加了必要的行
zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.remote_enable=开启
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9500
xdebug.show_local_vars=1
xdebug.remote_log="/var/log/xdebug/xdebug.log"- 在 var/log/xdebug/xdebug.log 上创建的日志文件
- 通过 Sublime Text3 中的包控制安装 XdebugClient
- 在 var/www 上创建项目文件夹 echo
Xdebug.sublime-settings
{
"path_mapping": {
"/var/www/echo/" : "/var/www/echo/"
},
"url": "http://localhost/echo/index.php",
"super_globals": true,
"close_on_stop": true
}
echo.sublime-项目
{
"folders":
[
{
"path": "."
}
],
"settings":
{
"xdebug": {
"path_mapping": {
"/var/www/echo/" : "/var/www/echo/"
},
"url": "http://localhost/echo/index.php",
"super_globals": true,
"close_on_stop": true
}
}
}
- 创建第一个php页面
index.php
<?php
echo "hello world";
phpinfo();
?>
在第一行设置断点
单击工具> Xdebug 启动Xdebug(启动浏览器)
页面在浏览器中打开,前缀以 ?XDEBUG_SESSION_START=sublime.xdebug
http://localhost/echo/?XDEBUG_SESSION_START=sublime.xdebug
它在 sublime text3 的底部显示 4 个面板
但是现在如何逐步退出?它没有在底部面板中显示任何内容
我在哪里遗漏了什么?
控制台输出是
Traceback(最近一次调用最后一次): _bootstrap_inner
中的文件“./threading.py”,第 901 行 文件“./threading.py”,第 858 行,运行中
文件“main in /home/keshav/.config/sublime-text-3/Installed Packages/Xdebug Client.sublime-package”,第 275 行,在听
文件“/home/keshav/.config/sublime-text-3/Installed Packages/Xdebug Client.sublime-package 中的 xdebug.protocol”,第 250 行,在听 Xdebug Client.xdebug.protocol.ProtocolConnectionException: [Errno 98] 地址已在使用中
注意:见过similar issue on github,但这无助于解决我的问题。
注意:我在 another article 中描述的 sublime text3 中看到了这样的面板(如下所示),
【问题讨论】:
-
嘿..你一定已经解决了这个问题..但是徘徊了一个小时我来到了这个线程,它真的帮助我找出了我的错误..也不确定你的有什么问题但是只需右键单击 xdebug 中的任何面板,我就可以进入和退出选项..
标签: sublimetext3 xdebug