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

  • 相关阅读:
    pyecharts包学习笔记
    敏捷测试关键成功因素
    JMeter—常见问题(十四)
    性能测试面试题
    python-Tkinter整理总结
    JMeter—系统性能分析思路(十三)
    JMeter—监听器(十二)
    JMeter—断言(十一)
    yii2.0 的数据的 增
    Windows下安装 使用coreseek
  • 原文地址:https://www.cnblogs.com/ssfs/p/6492263.html
Copyright © 2011-2022 走看看