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

发布于 2024-10-08 21:01:21 字数 680 浏览 0 评论 0原文

我希望收集有关调试报告数据生成的提示、博客和其他最佳实践。

我不是在寻找报告课程,很多 帖子 已经存在于此。这些无助于从数据层获取数据并准备打印(除非有一个库具有一些相关的“飞行前”功能)。

我正在 MVC 框架(CodeIgniter,但这不重要)中工作,因此一个调试难题是在循环中的每一点显示重要变量。记录下来吗?转储到屏幕?

我认为使用 逐步 PHP 调试器 将使过程更容易,但我有兴趣为报告生成和调试制定更好的策略。

我认为任何提示/等的口头描述也很有价值。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

探春 2024-10-15 21:01:22

使用 Firebug / FirePHP : http://www.firephp.org/

它支持浏览器的各种日志记录,包括表和堆栈跟踪。

如果您不想手动实现它,Zend_Framework Wildfire 日志编写器可以与 CodeIgniter 一起使用:
http://framework.zend.com /manual/en/zend.log.writers.html#zend.log.writers.firebug

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文