发新话题
打印

一个程序开发时需要用到的debug文件

一个程序开发时需要用到的debug文件

一个程序开发时需要用到的debug文件:
很不错的东西.
在程序调试时候可以轻松的输出查看你想要看的参数.我也在用妇炎洁
附件: 您所在的用户组无法下载或查看附件

TOP

推荐.用法如下:
引用:
/************************************************
** Title.........: PHP4+ Debug Helper
** Author........: Thomas Sch��ler <code at atomar dot de>
** Filename......: debuglib.php(s)
** Last changed..: 12.07.2004 14:13
** License.......: Free to use. Postcardware ;)
**
*************************************************
**
** Functions in this library:
**
** print_a( array array [,int returnmode] [,bool show object vars] [,int max entries] )
**
**   prints arrays in a readable form.
**   if mode is defined the function returns the output instead of printing it to the output buffer
**
**   print_a( $array, #, 1 ) shows also object properties
**   print_a( $array, 1, # ) returns the table as a string instead of printing it to the output buffer
**   print_a( $array, 'WindowName', #) opens the output in a window indentified by the string.
**   print_a( $array, '_WindowName', #) prints the array inside a frame (<fieldset><label>WindowName</label>...</fieldset>)
**   print_a( $array, 3, # ) opens a new browser window with a serialized version of your array (save as a textfile and can it for later use ;).
**
** show_vars( [bool verbose] [, bool show_object_vars ] [, int limit] )
**
**   use this function on the bottom of your script to see all
**   superglobals and global variables in your script in a nice
**   formated way
**
**   show_vars() without parameter shows $_GET, $_POST, $_SESSION,
**   $_FILES and all global variables you've defined in your script
**
**   show_vars(1) shows $_SERVER and $_ENV in addition
**   show_vars(#,1) shows also object properties
**   show_vars(#, #, 15) shows only the first 15 entries in a numerical keyed array (or an array with more than 50 entries)  ( standard is 5 )
**   show_vars(#, #, 0) shows all entries
**
**
**
** ** print_result( result_handle ) **
**   prints a mysql_result set returned by mysql_query() as a table
**   this function is work in progress! use at your own risk
**
**
*/
我的博客
大家好才是真的好

TOP

经过修改后提供几个功能:


数组打印:
引用:
function print_a( $array, $mode = 0, $show_object_vars = false, $limit = false )
SQL结果查询,只支持select影响列:
引用:
function print_result($sql)
运行时间
引用:
function script_runtime()
常用参数显示

显示常用的参数:post, get, session, cookie
引用:
function show_vars()
需要显示:env, server
引用:
function show_vars(1)
附件: 您所在的用户组无法下载或查看附件
我的博客
大家好才是真的好

TOP

小弟开奇迹私服了

6月27上午9点开服体验,晚上18点,准时开转!


游戏版本 独家104H终结篇,新增5张真实地图(巴斯卡休息室,巴斯卡兵营),4大完美战役,让您激情体验战火纷飞的战场!
经验设置 上线9999点,每级25/30点,开150转!第一转10级转送30转,前80转300级转,后70转380级转,每转300点!会员280级转,每转330点!法师守护80%.战士暴光:70%经玩家一周测试职业PK平衡!
新人设置 新人注册送MU币10亿 9999属性点,新人领取全属性极品武器
奇迹私服线路设置 1-4普通练级线.⒌线罗兰.狼魂战役.砍特鲁战役
掉宝设置 卓越掉宝率为 1/50,可掉380级装备武器. 宝石掉率为官方15倍。(皆为真实爆率)
变身设置 普通玩家可以变身3次,会员30次!
攻城设置 冰风堡攻城→一线每天晚上7点|罗兰峡谷攻城(坐标238.13)→5线三天一次须盟主申请|狼魂要塞战役→5线进入罗兰后(坐标 160 40进入走入狼魂要塞每晚9点)|坎特鲁战役系统→一天一次,魔法完美私服,完美国际私服战每天晚上19:00
独家设置

卡7 古 狼混半小时刷BOOS各2只%80几率掉套装(1-3件).

不定期推出挑战任务及活动,完成有大奖... ...

完美世界私服新增系统 增加5种新翅膀,5张新地图.N种新道具.N种新怪物!
玩家必看 进入游戏前请下载1.04H补丁或完整客户端确保正常进入游戏!若有疑问请联系客服!

增加了五张变态奇迹私服新地图 N种新怪物                巴斯卡休息室 超级BOSS一群
增加了战争系统 从此奇迹不再单调           在大陆输入/移动 管理员之家
增加了妹妹攻击 妹妹的福音                 赢得胜利可以进入英雄要塞打宝
增加了召唤宝宝功能 任何职业均可以召唤     广告 洗红 加点等在游戏内进行
增加了幻象之都打怪副本                    第三代翅膀是你梦寐以求的追求
增加了巴斯卡兵营 打BOSS掉套和高级卓越魔兽世界私服可以打到套装

TOP