使用 sublime text 2 运行 xdebug [英] run xdebug with sublime text 2
问题描述
所以我试图让 sublime text 2 与 x-debug 一起运行我已经安装了
so im trying to get sublime text 2 to run along with x-debug i have installed the
Kindari-SublimeXdebug
Kindari-SublimeXdebug
我有 wamp(我启用了 xdebug)这是php.ini配置
and i have wamp (i have enabled xdebug ) here is the php.ini configuration
; XDEBUG Extension
zend_extension =
"c:/wamp/bin/php/php5.3.10/zend_ext/php_xd
ebug-2.1.2-5.3-vc9-x86_64.dll"
[xdebug]
xdebug.remote_enable = On
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_name =
cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.remote_connect_back = On
xdebug.remote_autostart = On
但是每次我尝试通过 sublime it 连接到它时:
but still every time i try to connect to it through sublime it though :
Xdebug : is not running
即使在我的 phpinfo() 中;它表明它可能运行..对不起,我还是 x-debug 和 sublime 的新手......提前致谢
even though in my phpinfo() ; it shows that it runs probably .. sorry im still new to x-debug and sublime ... thanks in advance
推荐答案
我认为你需要在 php.ini
中的 xdebug 配置中添加以下几行:
I think you need to add the following lines to the xdebug configuration in php.ini
:
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
这篇关于使用 sublime text 2 运行 xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!