Я установил Xdebug на моем сервере Vagrant и плагин XdebugClient для Sublime Text 3. Когда я начинаю отладку, моя страница загружается в браузере, но ничего не отображается в контексте, смотрите или стек. Файл xdebug.log также пуст. Ниже приведены мои настройки:Xdebug (Vagrant) не работает с SublimeText 3
php.ini
[CUSTOM]
error_reporting=1
display_errors=true
track_errors=1
[xdebug ]
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_connect_back=1
xdebug.default_enable=1
xdebug.remote_autostart=0
xdebug.idekey=sublime.xdebug
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=10.0.2.15
xdebug.remote_port=9001
xdebug.remote_log="/var/log/xdebug/xdebug.log"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/tmp/profiler"
xdebug.remote_mode=req
xdebug.ini
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=10.0.2.15
xdebug.remote_port=9001
xdebug.remote_log="/var/log/xdebug/xdebug.log"
.sublime_project
"settings": {
"xdebug": {
"url": "http://mysite.dev/",
"path_mapping": {"/vagrant/www/mysite/dist" : "/Users/iii/Documents/Dev/vagrant/www/mysite/dist"},
"super_globals": true,
"close_on_stop": true,
}
}
Xdebug.sublime-настройки
{
"close_on_stop": true,
"pretty_output": true,
"launch_browser": true,
"debug": true,
"ide_key": "sublime.xdebug",
"port": 9001,
}
Может кто-то пожалуйста, скажите мне, что здесь не так?
Должен быть создан журнал Xdebug .. до тех пор, пока xdebug увидит параметр xdebug COOKIE/GET/POST. Итак, попробуйте с помощью 'xdebug.remote_autostart = 1' - он скажет xdebug попытаться отладить каждый отдельный запрос. Если все еще ничего (даже не файл xdebug log) - какое программное обеспечение/пакеты безопасности у вас есть на вашей виртуальной машине (например, SELinux и т.п.). – LazyOne