【问题标题】:Sublime Text 3 (with Xdebug Client plugin) + Vagrant VM (Ubuntu)Sublime Text 3(带有 Xdebug 客户端插件)+ Vagrant VM(Ubuntu)
【发布时间】:2014-08-26 11:00:03
【问题描述】:

无法在 Ubuntu 上运行 xdebug(即 Vagrant VM,主机是 Windows 7。

xdebug 配置

[CUSTOM]
error_reporting=-1
session.save_path=/var/lib/php/session
date.timezone=America/Chicago
cgi.fix_pathinfo=1
display_errors=true
[XDEBUG]
xdebug.remote_connect_back=1
xdebug.default_enable=1
xdebug.remote_log=/var/log/xdebug/xdebug.log
xdebug.remote_autostart=0
xdebug.remote_enable=1
xdebug.idekey=sublime.xdebug
xdebug.remote_port=9000
xdebug.remote_host=10.0.2.2
xdebug.remote_handler=dbgp

崇高的项目文件:

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": "."
        }
    ],
    "settings": {
        "xdebug": {
            "path_mapping": {
                "/var/www/projectname/public" : "C:\\Users\\user\\vagrant\\ubuntu-projectname\\projectname\\public",
             },
             "url": "http://projectname.com/",
             "super_globals": true,
             "close_on_stop": true
        }
    }
}

Sublime 显示空白的 Xdebug 上下文和堆栈... 我究竟做错了什么??谢谢回复。

【问题讨论】:

    标签: ubuntu vagrant sublimetext xdebug sublimetext3


    【解决方案1】:

    已通过将端口 9000 更改为 9001关闭 Windows 7 防火墙修复。 并且不要忘记在“工具”->“Xdebug”->“设置-用户”中更改端口:

    {
        "ide_key": "sublime.xdebug",
        "port": 9001,
    }
    

    + 之后不要忘记重启 Sublime Text

    【讨论】:

    • 希望您没有禁用防火墙
    猜你喜欢
    • 2017-03-31
    • 2013-10-01
    • 2016-01-05
    • 2014-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-18
    • 1970-01-01
    相关资源
    最近更新 更多