doulan9188 2010-12-24 01:14
浏览 76
已采纳

用于生成和调试报告的MVC策略是什么?

I'm looking to collect tips, blogs, and other best practices on debugging the generation of report data.

I'm not looking for reporting classes, many good posts exist here about this already. These won't help in getting the data from the data layer and readying it for printing (unless there's a library that has some relevant 'pre-flight' functions).

I'm working in a MVC framework (CodeIgniter, but that shouldn't matter), and so one debugging conundrum is the revealing of important variables at each point in the loops. Log it? Dump to screen?

I think using a step-wise PHP debugger would make the process easier, but I'm interested in pulling out better strategies for report generation and debugging in general.

I think that verbal description of any tips / etc would also be valuable to contribute.

  • 写回答

1条回答 默认 最新

  • dongxin1980 2010-12-24 01:34
    关注

    Use Firebug / FirePHP : http://www.firephp.org/

    It supports all kinds of logging to the browser, including tables and stack traces.

    If you don't want to implement it by hand, the Zend_Framework Wildfire log writer can be used with CodeIgniter: http://framework.zend.com/manual/en/zend.log.writers.html#zend.log.writers.firebug

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀