简体   繁体   English

生成和调试报告的最佳MVC策略是什么?

[英]What is a good MVC strategy for generating and debugging reports?

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. 我正在使用MVC框架(CodeIgniter,但这没关系),因此一个调试难题是在循环的每个点揭示重要变量。 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. 我认为使用逐步的PHP调试器会使过程更容易,但是我有兴趣为总体上为报表生成和调试提供更好的策略。

I think that verbal description of any tips / etc would also be valuable to contribute. 我认为,对任何技巧等进行口头描述也将有所帮助。

Use Firebug / FirePHP : http://www.firephp.org/ 使用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 如果您不想手动实现,则可以将Zend_Framework Wildfire日志编写器与CodeIgniter一起使用: http ://framework.zend.com/manual/zh/zend.log.writers.html#zend.log.writers 。萤火虫

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM