XDebug PHP与Sublime Text 3 - Debuging not working - Permission Denied

时间:2014-12-09 12:58:07

标签: javascript php debugging xdebug remote-debugging

我正在尝试使用崇高的文本调试我的php,并且我得到了一些权限被拒绝的问题。

我完成了所有安装,而phpinfo()表示xdebug工作正常。

我的project.settings配置就是这个:

{
  "folders":
  [
    {
      "follow_symlinks": true,
      "path": "C:/Development/GitHub/portaleducacional"
    }
  ],
  "settings":
  {
      "xdebug": {
        "path_mapping": {
        "educacional.localhost/" : "C:/Development/GitHub/portaleducacional/",
        },
      "url": "http://educacional.localhost/",
      "super_globals": true,
      "close_on_stop": true
      }
   }
}

我的xdebug.settings默认:

{
  "path_mapping": {
    "educacional.localhost/" : "C:/Development/GitHub/portaleducacional/",
  },
  "url": "http://educacional.localhost/index.php",
  "ide_key": "sublime.xdebug",
  "port": 9000,
  "super_globals": true,
  "max_children": 32,
  "max_data": 1024,
  "max_depth": 1,
  "break_on_exception": [
  "Fatal error",
  "Catchable fatal error",
  "Parse error",
  "Notice",
  "Strict standards",
  "Deprecated",
  "Xdebug",
  "Unknown error"
  ],
  "close_on_stop": false,
  "hide_password": false,
  "pretty_output": false,
  "launch_browser": false,
  "browser_no_execute": false,
  "disable_layout": false,
  "debug_layout" : {
    "cols": [0.0, 0.5, 1.0],
    "rows": [0.0, 0.7, 1.0],
    "cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
  },
  "breakpoint_group": 2,
  "breakpoint_index": 1,
  "context_group": 1,
  "context_index": 0,
  "stack_group": 2,
  "stack_index": 0,
  "watch_group": 1,
  "watch_index": 1,
  "breakpoint_enabled": "circle",
  "breakpoint_disabled": "dot",
  "breakpoint_current": "",
  "current_line": "bookmark",
  "python_path" : "",
  "debug": false
}

我在xammp上的php.ini配置:

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.6-5.5-vc11.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.remote_port = 9000

最后我得到的是:

(!)警告:include_once(C:\ Development \ GitHub \ portaleducacional):无法打开流:C:\ Development \ GitHub \ portaleducacional \ index.php中的权限被拒绝在线130Call Stack#TimeMemoryFunctionLocation10.0000156112 {main }().. \ index.php:0

(!)警告:include_once():在130行上的C:\ Development \ GitHub \ portaleducacional \ index.php中打开''以包含(include_path ='。; C:\ xampp \ php \ PEAR')失败Stack#TimeMemoryFunctionLocation10.0000156112 {main}().. \ index.php:0


使用调试(http://educacional.localhost/?XDEBUG_SESSION_START=sublime.xdebug

尝试地址时,权限被拒绝

我在Chrome上安装了XDebug Extension,并且地址上没有xdebug(仅http://educacional.localhost/且启用了xdebug扩展名)没有任何反应,网站正常加载但没有调试。我已经在XDebug扩展中进行了配置,我把IDKey放在“其他”中并放入了sublime.xdebug。

任何想法如何解决这个问题?我做错了什么?

Tnx很多

0 个答案:

没有答案