如何使用Firebug的调试器功能? [英] How to use Firebug's debugger functions?

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

问题描述

我没有任何面向我的语言的调试工具的经验,但我最近发现了一些展示Firebug的视频。

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

我正在使用Firebug一个脚本,其中包含错误。

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

我目前的理解是:


  • 我可以设置一个断点,显示为一个红色的圆圈。

  • Firebug在断点处停止,并提供4个选项(继续,逐步进入,逐步退出) / li>
  • 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).

但我不明白:


  • 4个选项之间有什么区别?

继续 Step Into Step Over and Step Out

对我来说,Step Over有时候类似于Step Into ...我可能在这里错了。

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

我将不胜感激如果您可以解释4个选项的差异,或者是对这些选项的更深入解释的链接。

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.

解决方案


  • 继续 F8 - 恢复执行,就好像代码从未停止

    • Continue F8- Resume execution as if the code was never stopped

      进入 F11 - 更改调试器上下文将运行到代码停止的功能。如果代码无法进入该函数,这与 Step Over

      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 - 执行调试器停止的代码,但保持在当前功能

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

      退出 Ctrl + F11 - 执行代码直到当前函数结束,并恢复调试一旦它已经返回

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

      这些术语适用于所有调试器。这可能是一个更好的(或至少更完整的)解释: http:// www.developerfusion.com/article/33/debugging/4/

      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/

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

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