如果不能用var_dump输出到页面调试,可以用var_export调试
$a = @file_put_contents(FANWE_ROOT."./debug/".time().".php","<?php\n".'return '.var_export($list, true).";\n\n?>");
以上生成的文件带完整日期,而文件名称不能有‘:’,所以,换个代码
如果不能用var_dump输出到页面调试,可以用var_export调试 wangtongphp.qq=1006440989
$fjwaoifjds = @file_put_contents(ROOT_PATH."debug_var_export/".a_toDate(a_gmtTime(),'mdHis')."_".rand().".php","<?php\n".'return '.var_export($order_vo, true).";\n\n?>");
接下来又完善了一下:
$fjwaoifjds = @file_put_contents(ROOT_PATH."debug_var_export/com_order_pay_func.php/".a_toDate(a_gmtTime(),'Ymd-His_').rand(1,99)."order_vo.php","<?php\n".'return '.var_export($order_vo, true).";\n\n?>");
方维系统写日志,最终版
$fjwaoifjds = @file_put_contents(ROOT_PATH."debug_var_export/".a_toDate(a_gmtTime(),'Ymd_His_').$_SESSION['debug']++."_com_order_done_func.php_429.php","<?php\n".'return '.var_export($order, true).";\n\n?>");
系统调试,写日志,将变量写入文件调试,最终版本:
//add by wangtongphp debugger $fjwaoifjds = file_put_contents("d:/xampp/htdocs/letutao/debug/".date("His_ymd",time())."_".rand(0,9).".php","<?php\n".'return '.var_export($TS_SOFT, true).";\n\n?>");