---
title: "Firefox使用Firebug中debug"
author: "caizh2009"
date: "2009-05-18T01:30:00Z"
tags: ["CSS", "Firebug", "Firefox", "JavaScript", "脚本"]
slug: "firefox-firebug-debug"
draft: false
lastmod: "2009-05-18T01:30:00Z"
id: 413385
url: "https://caizh2009.iteye.com/blog/413385"
---

Firefox使用Firebug中debug视图下的step into, step over等按钮需要先设置javascript脚本的断点  
debug视图中包括step into和step over等按钮，这些按钮在通常的情况下是无效的，如果需要单步调试javascript代码，可以在相应的javascript代码处设置断点，然后刷新页面。

\[Firebug简介]  
当前版本：1.05  
Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.  
在您浏览时集成在Firefox中的Firebug能让您对于大量开发工具了如指掌。您可以实时在任何浏览的页面中编辑、调试、监视CSS，HTML和JavaScript。  
Visit the Firebug website for documentation, screen shots, and discussion forums:  
访问Firebug站点可以获得文档、效果图和讨论论坛。

\[Firebug发布网址]  
https://addons.mozilla.org/en-US/firefox/addon/1843  
\[Firebug站点]  
http://www.getfirebug.com  
\[Firebug文档]  
http://www.getfirebug.com/docs.html  
\[Firebug的bug]  
http://code.google.com/p/fbug/issues/list  
\[Firebug视图]  
Console 控制台  
Script  脚本  
DOM     文档对象结构  
Net     网络

\[Firebug的console API]  
console API文档, http://www.getfirebug.com/console.html  
console.time()用于计算时间

\[Firebug常见问题]  
在FireBug的console对象输出时，需要注意第一个参数被自动识别为格式字符串

Firefox使用Firebug中debug视图下的step into, step over等按钮需要先设置javascript脚本的断点

文章出处：DIY部落(http://www.diybl.com/course/1\_web/javascript/jsjs/2007927/74522.html)

![](http://www.blogjava.net/caizh2009/aggbug/271227.html)

[小菜毛毛](http://www.blogjava.net/caizh2009/) 2009-05-18 09:30 [发表评论](http://www.blogjava.net/caizh2009/articles/271227.html#Feedback)