如何在firebug中跟踪或调试javascript闭包 [英] how to trace or debug javascript closures in firebug

查看:113
本文介绍了如何在firebug中跟踪或调试javascript闭包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何跟踪闭包中局部变量的值,以及firebug中闭包的执行流程。或者有任何其他工具专门用于调试闭包。

How do i trace the values of local variables in closure, and also the execution flow of closures in firebug. or is there any other tools that is specifically for debugging closures.

推荐答案

是的。你可以使用Firebug调试javascript闭包。在脚本选项卡上,您可以查看所有对象实例以及整个对象的状态。请在Firebug屏幕截图下方显示关闭中的局部变量。

Yes. You can debug the javascript closure with Firebug. On Script tab, you can see all the object instances as well as the state of the whole object. Please, Find it below the screenshot of firebug showing local variables in closure.

如果您想了解详情,请阅读此这里并练习。

If you want to learn more read this here and practice it.

这篇关于如何在firebug中跟踪或调试javascript闭包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆