And*_*dez 3 php linux xdebug sublimetext2
我从未使用过Xdebug,但我想开始.我正在使用Ubuntu Linux并且已经能够:
phpinfo()和var_dump() 在崇高的设置:
"settings": {
"xdebug": { "url": "http://your.web.server" }
}
Run Code Online (Sandbox Code Playgroud)这是出了什么问题:
我究竟做错了什么?
这些是整个步骤,对我有用
sudo -i
apt-get install php5-xdebug
vim /etc/php5/conf.d/xdebug.ini
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
:wq
apachectl restart
exit
Download do SublimeXdebug
unzip
move folder para ~/.config/sublime-text-2/Packages/Xdebug
Download python 2.6 (careful with i386 vs amd64)
dpkg-deb -x python2.6_2xxxx.deb python2.6
move folder to ~/sublime/lib/python2.6
open google chrome
chrome://settings/extensions
Get more extensions
search for xdebug
install xdebug helper
go to "options" of xdebug helper
in IDE type "other" and in input "sublime.xdebug"
start sublime
open file test.php
add breakpoints
start debugging
in chrome go to http://localhost/test.php
activate the icon of the plugin
refresh
Run Code Online (Sandbox Code Playgroud)
这就对了!