网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 论文素材 设计下载 最新论文 下载排行 论文上传 在线投稿 联系我们
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 编程文档 > PHP > 正文
XDEBUG EXTENSION FOR PHP Basic Features
来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 12/12/07
下载{$ArticleTitle}原创论文样式

  Related Settings

  xdebug.default_enable

  Type: boolean, Default value: On

  If this setting is On then stacktraces will be shown by default on an error event. You can disable showing stacktraces from your code with xdebug_disable(). As this is one of the basic functions of Xdebug, it is advisable to leave this setting set to 'On'.

  xdebug.max_nesting_level

  Type: integer, Default value: 100

  Controls the protection mechanism for infinite recursion protection. The value of this setting is the maximum level of nested functions that are allowed before the script will be aborted.

  Related Functions

  string xdebug_call_class( )

  Returns the calling class

  This function returns the name of the class from which the current function/method was called from.

  Example:

  <?PHP

  functionfix_string($a)

  {

  echo"Called@".

  xdebug_call_file().

  ":".

  xdebug_call_line().

  "from".

  xdebug_call_function();

  }

  $ret=fix_string(array('Derick'));

  ?>

  Returns:

Called @ /home/httpd/html/test/xdebug_caller.php:12 from {main}

  string xdebug_call_file( )

  Returns the calling file

  This function returns the filename that contains the function/method that called the current function/method.

  For an example see xdebug_call_class().

  string xdebug_call_function( )

  Returns the calling function/method

  This function returns the name of the function/method from which the current function/method was called from.

  For an example see xdebug_call_class().

  int xdebug_call_line( )

  Returns the calling line

  This function returns the line number that contains the function/method that called the current function/method.

  For an example see xdebug_call_class().

  void xdebug_disable( )

  Disables stack traces

  Disable showing stack traces on error conditions.

  void xdebug_enable( )

  Enables stack traces

  Enable showing stack traces on error conditions.

  bool xdebug_is_enabled( )

  Returns whether stack traces are enabled

  Return whether stack traces would be shown in case of an error or not.

  int xdebug_memory_usage( )

  Returns the current memory usage

  Returns the current amount of memory the script uses. Before PHP 5.2.1, this only works if PHP is compiled with --enable-memory-limit. From PHP 5.2.1 and later this function is always available.

  int xdebug_peak_memory_usage( )

  Returns the peak memory usage

  Returns the maximum amount of memory the script used until now. Before PHP 5.2.1, this only works if PHP is compiled with --enable-memory-limit. From PHP 5.2.1 and later this function is always available.

  float xdebug_time_index( )

  Returns the current time index

  Returns the current time index since the starting of the script in seconds.

  Example:

  <?php

  echoxdebug_time_index(),"n";

  for($i=0;$i<250000;$i++)

  {

  //donothing

  }

  echoxdebug_time_index(),"n";

  ?>

  Returns:

0.00038003921508789
0.76580691337585

(责任编辑:admin)

网学推荐

免费论文

原创论文

浏览:
设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
湘ICP备09003080号