最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to use Firebug's debugger functions? - Stack Overflow

programmeradmin0浏览0评论

I don't have an experience with any debugger tools geared towards my language, but I recently found some videos showcasing Firebug.

I'm now using Firebug on a script in which I included an error.

My current understanding is:

  • I can set a breakpoint, which is shown as a red circle.
  • Firebug stops at the breakpoint and gives me 4 options (Continue, Step Into, Step Over and Step Out).

But I don't understand:

  • What the difference is between the 4 options:

Continue, Step Into, Step Over and Step Out?

To me, Step Over is sometimes similar to Step Into... I could be wrong here.

I would be grateful if you could explain the differences of the 4 options, or a link to a more in depth explanation on these options.

I don't have an experience with any debugger tools geared towards my language, but I recently found some videos showcasing Firebug.

I'm now using Firebug on a script in which I included an error.

My current understanding is:

  • I can set a breakpoint, which is shown as a red circle.
  • Firebug stops at the breakpoint and gives me 4 options (Continue, Step Into, Step Over and Step Out).

But I don't understand:

  • What the difference is between the 4 options:

Continue, Step Into, Step Over and Step Out?

To me, Step Over is sometimes similar to Step Into... I could be wrong here.

I would be grateful if you could explain the differences of the 4 options, or a link to a more in depth explanation on these options.

Share Improve this question edited Jun 1, 2012 at 11:46 thejartender 9,3796 gold badges37 silver badges51 bronze badges asked Mar 19, 2010 at 12:59 TK.TK. 28.2k20 gold badges66 silver badges72 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 22
  • Continue F8- Resume execution as if the code was never stopped

  • Step Into F11 - Change the debugger context to run into the function the code is stopped on. If the code cannot step into the function, this is the same as Step Over

  • Step Over F10- Execute the code the debugger is stopped on, but stay within the current function

  • Step Out Ctrl+F11 - Execute code until the end of the current function, and resume debugging once it has returned

These terms apply to all debuggers. Here is perhaps a better (or at least, more complete) explanation: http://www.developerfusion.com/article/33/debugging/4/

发布评论

评论列表(0)

  1. 暂无评论