Sublimetext3 Xdebug没有';Don’’我不想和崇高的文本一起工作

Sublimetext3 Xdebug没有';Don’’我不想和崇高的文本一起工作,sublimetext3,xdebug,Sublimetext3,Xdebug,Xdebug安装在Ubuntu12.04上,带有sublime text build 3083,有此帮助 在xdebug.ini文件中添加了必要的行 zend_extension=/usr/lib/php5/20090626/xdebug.so xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote\u host=localhost xdebug.remote_port=9500 xdebug.show_local_var

Xdebug安装在Ubuntu12.04上,带有sublime text build 3083,有此帮助

  • 在xdebug.ini文件中添加了必要的行
  • zend_extension=/usr/lib/php5/20090626/xdebug.so
    xdebug.remote_enable=on
    xdebug.remote_handler=dbgp
    xdebug.remote\u 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中的软件包控件安装
  • 在var/www上创建项目文件夹echo
  • Xdebug.sublime设置
    echo.sublime-project

    {
        "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(启动浏览器)

  • 页面在浏览器中打开,前缀为end,前缀为?XDEBUG\u SESSION\u START=sublime.XDEBUG

    http://localhost/echo/?XDEBUG_SESSION_START=sublime.xdebug

    它在升华文本3的底部显示4个面板

    但现在如何介入走出去呢?它在底部面板中没有显示任何内容

    我哪里漏掉了一点

    控制台输出为

    回溯(最近一次呼叫最后一次): 文件“/threading.py”,第901行,在\u bootstrap\u inner中
    文件“/threading.py”,第858行,运行中
    文件“main in/home/keshav/.config/sublime-text-3/Installed Packages/Xdebug Client.sublime package”,第275行,在listen中
    文件“xdebug.protocol in/home/keshav/.config/sublime-text-3/Installed Packages/xdebug Client.sublime package”,第250行,在listen中 Xdebug Client.Xdebug.protocol.ProtocolConnectionException:[Errno 98]地址已在使用中

    注意:已看到,但这无助于解决我的问题

    注:我在sublime text3中看到过但无法看到该面板(如下所示),如中所述,

  • 重新启动apache
  • 更改xdebug端口号以避免与web服务器端口冲突

  • 这将解决您的问题。

    嘿。。你一定已经解决了这个问题。但是我花了一个小时才找到这条线索,它真的帮助我找出了我的错误。也不确定你的问题出在哪里,但只需右键单击xdebug中的任何面板,我就可以获得“步进”和“步出”选项。。
    <?php   
      echo "hello world";  
      phpinfo(); 
    ?>