zoukankan      html  css  js  c++  java
  • YII2 源码阅读 综述

    如何阅读源码呢?

    我的方法是,打开xdebug的auto_trace

    [XDebug]
    ;xdebug.profiler_append = 0
    ;xdebug.profiler_enable = 1
    ;xdebug.profiler_enable_trigger = 0
    xdebug.auto_trace = On
    xdebug.collect_vars = On
    xdebug.collect_return = On
    xdebug.collect_params = 4
    xdebug.show_local_vars = On
    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:phpStudyphp54nextxdebug.dll"
    

    这样访问一下首页就记录下了YII的执行过程(好像只记录了函数的调用,同时能显示传入函数的参数值,函数的返回值)

    然后配合源码,就能比较轻松的读懂了。这样不需要为了看传入一个函数的参数值是什么而用var_dump,省去很多麻烦

  • 相关阅读:
    查找第K小数
    比较奇偶数个数
    哈夫曼树练习
    数字转二进制数练习
    随笔
    字符串反码(练习)
    eclipse构建maven的web项目
    mysql中的一些操作语句,留存
    urllib2功能说明
    Python-第三方库requests详解
  • 原文地址:https://www.cnblogs.com/bushe/p/5230571.html
Copyright © 2011-2022 走看看