使用Firebug调试jQuery [英] Debugging jQuery with Firebug

查看:64
本文介绍了使用Firebug调试jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到很多关于如何在Firebug中调试jQuery的老文章.任何人都有一个好的方法,因为我根本看不到任何可行的方法.

I've seen a ton of old posts out there on how to try to debug jQuery in Firebug. Anyone have a good way yet cause I do not see one at all that works.

推荐答案

我认为提问者真的只是想知道如何在非常基本的级别上使用该工具,我想这些答案都不会直接针对他们的问题为什么他们没有得到绿色的支票.尽管您掌握了基础知识之后,其中的信息还是很有用的.这个问号很旧,原始作者可能已经赚了100万美元,但是这个答案也许会使其他人受益.我自己并不了解很多,但这就是我所知道的.

I think the asker really just wants to know how to use the tool at a very basic level, and I guess none of these answers target their issue straight on that's why they don't get green check. though the info in them is useful once you get past the basics. This Q is old and the original author has probably gone on to make a million bucks, but perhaps this answer will benefit someone else. I don't know much myself but here is what I do know.

您可以使用Firebug窗口中的脚本选项卡.查看顶部,您会看到控制台 html css 脚本 DOM 等标签.您要选择 script 标记,然后在该标记的下方(可能很小)下有另一行选项卡,第一个选项卡默认为静态,第二个选项卡是所有具有javascript的组件的下拉列表.选择要调试的一个,然后转到它的左侧,然后单击要设置断点的行旁边的空白处.那里仍然出现一个红色圆圈.现在,在右侧,有用于进入,跨步等的箭头,在监视之下的右侧,您可以看到变量经过.

You use the scripts tab from the firebug window. Look at the top you see console, html, css, script DOM etc. tabs. You want to select the script tag then below that in impossibly small type there's another row of tabs the first one defaults to static and the second one is a drop down of all the components that have javascript. Select the one you want to debug and go to the left of it and click in the margin beside the line you want to set a break point. A red circle still appears there. Now over the right there are arrows for step into, step over, etc. and to the right of that under watch you can watch variables go by.

这篇关于使用Firebug调试jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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