Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
187 views
in Technique[技术] by (71.8m points)

javascript - How to use Firebug's debugger functions?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  • 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/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...