💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## Container报错跟踪程序(尤其在命令行中使用) D:\phpsite\laravel\work\vendor\laravel\framework\src\Illuminate\Container\Container.php 832行增加 ~~~ ############################################################################################ // 自己添加的程序 $debug = debug_backtrace(); $debug_count = count($debug); $line_end = chr(10); $field_txt = '---------------- FILE START ----------------'.$line_end; $ling_row = 1; // 执行文件顺序 for($i = $debug_count; $i > 0; $i--){ ## 保存执行文件 执行行数 执行类 执行方法 $key = $i - 1; $_bug = $debug[$key]; $_class = isset($_bug['class']) ? $_bug['class'].'->' : ''; $field_txt .= $ling_row.'# FILE: '.$_bug['file']; $field_txt .= ' [LINE: '.$_bug['line'].']'; $field_txt .= ' [FUNC: '.$_class.$_bug['function'].']'; $field_txt .= $line_end; $ling_row++; } echo $field_txt; ############################################################################################ ~~~