Giter VIP home page Giter VIP logo

ydb's Introduction

ydb

a debug tool for php like gdb, a php zend extension. you can view the variable value of running script, and it can profile your web script, it's better than the other tools like xdebug or xhprof

ydb 是像gdb一样的php调试工具,用扩展实现,可以在运行过程中查看变量值,也可以进行性能测试,而不用对源代码进行任何更改,就像xdebug和xhprof 中提供的功能,但使用更方便,ydb目前有如下几大功能:

1.  查看任意变量值
2.  查看函数执行耗时及排行
3.  更改运行时变量值,可作为一种强大的单元测试工具
4.  跨网络调试,对远程调用的模块进行分析
5.  网络请求调用性能分析
6.  dump代码到页面

所有信息查看都在url中输入参数进行,而不用更改源代码,更详细的文档包括使用方法介绍见 http://blog.csdn.net/micweaver/article/details/17891163

  1. view the variable value

we can input the url in browser like this:

"wenda.so.com/?c=IndexController&f=indexAction&v= guinness_qa"

the c,v,v is your debug parameter, the ydb will dump the value of guinness_qa which's in the indexAction function of class IndexController on your webpage and stop the script,of course you can input the 'l' parameter to dump the variable value to a log file

c: the class name;

f: the functions name;

v: the variable name,or if you do not provide this parameter,the ydb will dump all of the variable in the function

  1. profile your script

    we can input the url in browser like this:

"wenda.so.com/?c=IndexController&f=indexAction&t= 1"

the parameter t stand for profiling your script,the ydb will display a time cost rank for all the function in the indexAction function of class IndexController on your webpage and stop the script desc descending order.

ydb未来将提供的功能:

  1. 查看变量中间值
  2. 多层次函数调用性能观察
  3. 查看函数调用栈
  4. 进行安全编码方面的检测调试

ydb's People

Contributors

micweaver avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.