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

  • 相关阅读:
    CSS3单选动画
    CSS3不一样的下拉选择框
    CSS3实现3d菜单翻转
    CSS3实现加载数据动画2
    CSS3实现加载数据动画1
    MySQL事务隔离级别和Spring事务关系介绍(转载)
    Elasticsearch7.5&Kibana7.5安装
    用nginx实现https请求转http请求(转)
    elasticsearch中多个字段聚合两种方法介绍
    window 同时安装python2和python3
  • 原文地址:https://www.cnblogs.com/ssfs/p/6492263.html
Copyright © 2011-2022 走看看