From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/mozilla/debugging/index.html | 139 +++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 files/zh-cn/mozilla/debugging/index.html (limited to 'files/zh-cn/mozilla/debugging/index.html') diff --git a/files/zh-cn/mozilla/debugging/index.html b/files/zh-cn/mozilla/debugging/index.html new file mode 100644 index 0000000000..d3c90b5685 --- /dev/null +++ b/files/zh-cn/mozilla/debugging/index.html @@ -0,0 +1,139 @@ +--- +title: 调试 +slug: Mozilla/Debugging +translation_of: Mozilla/Debugging +--- +

Debugging a project as large as Mozilla can be a daunting task. Fortunately, over the years, Mozilla developers have come up with not just technologies and features to help you debug code, but have devised tips and techniques that can help too. Also available are assorted tools that you can use when debugging.

+ + + + + + + +
+

Documentation topics

+

Debugging on top of the Mozilla platform

+
+
+ Debugging JavaScript code
+
+ How to debug JavaScript code, with a focus on debugging code in the Mozilla project itself.
+
+ Debugging a XULRunner application
+
+ Tips and suggestions that will help you debug your XULRunner based application.
+
+ Debugging on Boot to Gecko
+
+ Debugging Firefox OS (apps and the platform itself)
+
+ Debugging update problems
+
+ Learn how to debug update problems in Mozilla-based applications.
+
+

Debugging the Mozilla platform

+

Using debuggers with Mozilla

+
+
+ Debugging Mozilla on Windows FAQ
+
+ Questions (and answers) about debugging Mozilla on Windows.
+
+ Debugging Mozilla on Mac OS X
+
+ Questions (and answers) about debugging Mozilla on Mac OS X.
+
+ Debugging Mozilla with gdb
+
+ gdb is our primary debugger on Mac and Linux.
+
+ Debugging Mozilla with lldb
+
+ lldb is the new debugger on Mac.
+
+

Advanced debugging techniques

+
+
+ Debugging Mozilla with valgrind
+
+ valgrind is a memory debugger for Mac and Linux. It is slow, but good for tracking down difficult memory safety bugs.
+
+ Replay debugging Firefox with VMWare Workstation
+
+ How to setup record and replay debugging on Firefox, to help debug intermittent mochitest failures.
+
+

Debugging specific parts of the Mozilla codebase

+
+
+ Debugging OpenGL {{gecko_minversion_inline("2.0")}}
+
+ If you're working on code that involves OpenGL calls, and need to debug it, you can turn on a special OpenGL debugging mode.
+
+ Debugging frame reflow and Debugging table reflow
+
+ Notes on debugging issues in Gecko's layout engine.
+
+

Miscellaneous

+
+
+ Debugging Safari
+
+ Some tips for debugging Safari
+
+ Debugging Chrome
+
+ Some tips for debugging Chrome
+
+ Debugging Internet Explorer
+
+ Some tips for debugging Internet Explorer
+
+
+

Providing useful information to the Mozilla developers

+
+
+ How to get a stacktrace for a bug report
+
+ Useful information you can provide about a crash.
+
+ Reporting a Performance Problem
+
+ ...using the Gecko Profiler extension.
+
+ Debugging a hang on Mac OS X
+
+ Collecting "samples" to attach to a bug.
+
+ Remote debugging
+
+ Core dumps and examples of remote debugging. Useful if a developer can't reproduce your crash.
+
+ HTTP logging
+
+ How to log HTTP network traffic for debugging purposes.
+
+

Debugging tools

+
+
+ Tools
+
+ Assorted tools that will help you debug your code or web site.
+
+ Download a debug build
+
+ Recent automatically compiled debug builds are available. Note that these are replaced frequently by our tinderboxes. The debug builds have "-debug" at the end of their file names.
+
+ +
+
+ Performance and profiling
+
+ Troubleshooting performance problems.
+
+ Debugging memory leaks
+
+ Learn about tools and techniques that will help you debug memory leaks.
+
+
+

 

-- cgit v1.2.3-54-g00ecf