简单的Ajax / PHP调试 [英] Simple Ajax/PHP debugging
问题描述
我测试了Ajax / jQuery的加载PHP模块,我想知道如果有一个简单的方法来调试这不使用全功能的调试器。
I'm testing an Ajax/jQuery-loaded PHP module and I was wondering if there's a simple way to debug this without using a full featured debugger.
我很简单的调试方法是呼应了一些数据和读取浏览器的输出,但是由于阿贾克斯加载模块性,输出是隐藏的。
My very simple debugging option is to echo some data and read browser output, however due to Ajax-loaded modules nature, output is hidden.
虽然我可以返回调试数据,直到AJAX加载的模块运行过程中,如果发生错误,我不能跟踪或看见节目中断。
While I can return debugging data until the ajax-loaded module is running, I can't track or "see" program interruptions if error occurs.
有没有办法让输出也是在阿贾克斯加载模块?还是?
Is there a way to allow "output" also in the ajax-loaded modules? Or ?
推荐答案
我想一个解决方案,可以使用FirePHP:
I suppose a solution could be using FirePHP :
- 在PHP端,你产生一些特定的HTTP报头 - 这不会是输出自身的一部分 - 利用它的 PHP库 。
- 而且,在Firefox,安装 FirePHP扩展 ,这将解析这些头文件,并显示在Firebug的相应数据。
这篇关于简单的Ajax / PHP调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!