zoukankan      html  css  js  c++  java
  • Zend Studio下的PHP代码调试

    如果你的php版本是5.3以上,且是thread safe的,那么不要浪费你的时间做尝试,建议你直接改用XDebug吧。以下官方给出的解释。

    The Debugger we provide supports only the non-thread-safe architecture, that is why it does not load in your configuration.
    Zend stopped supporting the thread safe architecture when Microsoft also decided to implement its PHP engine with the fast-cgi architecture which means non-thread-safe.
    Best regards,

    Massi.

    任务:XDebug安装

     

    http://xdebug.org/download.php选择自己需要的xdebug版本。

    下载并解压到自己需要的位置。

    php.ini中加入

    zend_extension_ts="你的php根目录/ext/php_xdebug.dll"

    如果不行改用

    zend_extension="你的php根目录/ext/php_xdebug.dll"

    然后重启apache通过phpinfo()输出并查找xdebug是否被成功加载。

    问题:XDebug无法进入断点

    php.ini中加入

    ;开启自动跟踪

    xdebug.auto_trace = On

    ;开启异常跟踪

    xdebug.show_exception_trace = On

    ;开启远程调试自动启动

    xdebug.remote_autostart = On

    ;开启远程调试

    xdebug.remote_enable = On

    ;收集变量

    xdebug.collect_vars = On

    ;收集返回值

    xdebug.collect_return = On

    ;收集参数

    xdebug.collect_params = On

    xdebug.trace_output_dir="e:/xampp/temp"

    xdebug.profiler_enable=On

    xdebug.profiler_output_dir=" e:/xampp/temp"

     

    xdebug.remote_host=localhost

    xdebug.remote_port=9000

    xdebug.remote_handler=dbgp

  • 相关阅读:
    join_tab计算代价
    outer join test
    突然觉得mysql优化器蛮简单
    将数据库字段从float修改为decimal
    小米初体验
    简述安装android开发环境
    Rust语言:安全地并发
    awk里的各种坑
    ubuntu下使用C语言开发一个cgi程序
    Ubuntu下安装和配置Apache2
  • 原文地址:https://www.cnblogs.com/luowei/p/2645407.html
Copyright © 2011-2022 走看看