zoukankan      html  css  js  c++  java
  • X-debug

    首先php需要开始xdebug的扩展

    然后,修改php配置文件

    [XDebug]

    xdebug.profiler_append = 0
    xdebug.profiler_enable = 1
    xdebug.profiler_enable_trigger = 0
    xdebug.profiler_output_dir ="D:phpStudy mpxdebug"
    xdebug.trace_output_dir ="D:phpStudy mpxdebug"
    xdebug.profiler_output_name = "cache.out.%t-%s"
    xdebug.remote_enable = 1            #开启
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    zend_extension="D:phpStudyphp53nextxdebug.dll"
    xdebug.idekey= PHPSTROM

    其中remote_host 是指调试客户端的地址,即IDE所在的IP,同理remote_port 是客户端的端口,这两项在远程调试的情况下注意修改,远程的时候最终改为:

    [XDebug]

    zend_extension = "D:xamppphpextphp_xdebug.dll"

    xdebug.profiler_append = 0

    xdebug.profiler_enable = 1

    xdebug.profiler_enable_trigger = 0

    xdebug.profiler_output_dir = "D:xampp mp"

    xdebug.profiler_output_name = "cachegrind.out.%t-%s"

    xdebug.remote_enable = 1

    xdebug.remote_handler = "dbgp"

    xdebug.remote_mode = "req"

    xdebug.remote_port = 9000

    最后重启apache检查是否成功开启了xdebug服务。

    一种方法为在CMD里输入D:xamppphpphp.exe -m 看到XDebug,说明成功开启XDebug。

    另一种方法为浏览器打开localhost,找到phpinfo()点击打开配置情况,查找xdebug项,找到了说明xdebug配置成功。

    此时配合PhpStorm使用,参考http://www.cnblogs.com/neng-zheng/p/6209236.html

  • 相关阅读:
    J
    I
    uva122 二叉树的实现和层次遍历(bfs)
    A
    HDU 波峰
    2239: 童年的圣诞树
    1734: 堆(DFS)
    1731: 矩阵(前缀和)
    1733: 旋转图像(模拟)
    1728: 社交网络(概率问题 组合数/排列数)
  • 原文地址:https://www.cnblogs.com/ssfs/p/6492263.html
Copyright © 2011-2022 走看看