The Firefox JavaScript Debugger - Firefox Developer Tools 编辑
The JavaScript Debugger enables you to step through JavaScript code and examine or modify its state to help track down bugs.
You can use it to debug code running locally in Firefox or running remotely, for example on an Android device running Firefox for Android. See remote debugging to learn how to connect the debugger to a remote target.
To find your way around the debugger, here's a quick tour of the UI.
How to
To find out what you can do with the debugger, refer to the following how-to guides.
Pause execution
You probably want to pause the execution of your code, in order to see what is going on at various points. There are multiple ways to tell the Debugger how and when to pause:
- Set a breakpoint
- Set a conditional breakpoint
- Set an XHR breakpoint
- Set event listener breakpoints
- Break on exceptions
- Use watchpoints for property reads and writes
- Break on DOM Mutation
- Disable breakpoints
Control execution
What can you do after execution pauses?
Look at values
You probably want to see the value of variables or expressions, either during execution or when it is paused.
Reference
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论