From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/tools/debugger/how_to/index.html | 11 ++++ .../debugger/how_to/open_the_debugger/index.html | 24 +++++++++ .../debugger/how_to/set_a_breakpoint/index.html | 25 ++++++++++ files/zh-tw/tools/debugger/index.html | 58 ++++++++++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 files/zh-tw/tools/debugger/how_to/index.html create mode 100644 files/zh-tw/tools/debugger/how_to/open_the_debugger/index.html create mode 100644 files/zh-tw/tools/debugger/how_to/set_a_breakpoint/index.html create mode 100644 files/zh-tw/tools/debugger/index.html (limited to 'files/zh-tw/tools/debugger') diff --git a/files/zh-tw/tools/debugger/how_to/index.html b/files/zh-tw/tools/debugger/how_to/index.html new file mode 100644 index 0000000000..084f1717e5 --- /dev/null +++ b/files/zh-tw/tools/debugger/how_to/index.html @@ -0,0 +1,11 @@ +--- +title: How to +slug: Tools/Debugger/How_to +tags: + - NeedsTranslation + - TopicStub +translation_of: Tools/Debugger/How_to +--- +
{{ToolsSidebar}}

These articles describe how to use the debugger.

+ +

{{ ListSubpages () }}

diff --git a/files/zh-tw/tools/debugger/how_to/open_the_debugger/index.html b/files/zh-tw/tools/debugger/how_to/open_the_debugger/index.html new file mode 100644 index 0000000000..d630094589 --- /dev/null +++ b/files/zh-tw/tools/debugger/how_to/open_the_debugger/index.html @@ -0,0 +1,24 @@ +--- +title: Open the debugger +slug: Tools/Debugger/How_to/Open_the_debugger +translation_of: Tools/Debugger/How_to/Open_the_debugger +--- +
{{ToolsSidebar}}
+ +

有三種方式可以打開除錯器:

+ + + +

{{EmbedYouTube("yI5SlVQiZtI")}}

+ +
+
+
diff --git a/files/zh-tw/tools/debugger/how_to/set_a_breakpoint/index.html b/files/zh-tw/tools/debugger/how_to/set_a_breakpoint/index.html new file mode 100644 index 0000000000..04044571e5 --- /dev/null +++ b/files/zh-tw/tools/debugger/how_to/set_a_breakpoint/index.html @@ -0,0 +1,25 @@ +--- +title: Set a breakpoint +slug: Tools/Debugger/How_to/Set_a_breakpoint +translation_of: Tools/Debugger/How_to/Set_a_breakpoint +--- +
{{ToolsSidebar}}
+ +

你可以使用以下任一種方法來設置中斷點;

+ + + +

以下影片使用 context menu 來設置一個中斷點:

+ +

{{EmbedYouTube("P7b98lEijF0")}}

+ +

每個中斷點會在除錯器中的兩個地方顯示;

+ + diff --git a/files/zh-tw/tools/debugger/index.html b/files/zh-tw/tools/debugger/index.html new file mode 100644 index 0000000000..ca245fc16a --- /dev/null +++ b/files/zh-tw/tools/debugger/index.html @@ -0,0 +1,58 @@ +--- +title: 除錯器 +slug: Tools/Debugger +translation_of: Tools/Debugger +--- +
+

本頁在描述 Firefox Nightly 與 Firefox Developer Edition 第 52 版以後的 JavaScript 除錯器(Debugger)。

+ +

要找在此版本之前、或是位於 Beta 與 Release 通道的 Firefox,請參閱Firefox 52 之前的除錯器

+ +

如果你是這個版本的除錯器,但需要用舊版本的除錯器,你可以去 about:config 那裡,把「devtools.debugger.new-debugger-frontend」選為 false

+
+ +

{{EmbedYouTube("QK4hKWmJVLo")}}

+ +

JavaScript 除錯器可以讓 JavaScript 單步執行,並檢查或修改其狀態,以便查找錯誤。

+ +

你可以在本地或是在遠端除錯用 Firefox 除錯。一個遠端除錯的例子,就是在 Android 設備上執行 Firefox for Android。請參閱遠端除錯以理解如何把欲除錯的目標,連接到除錯器上。

+ +

The debugger ships inside Firefox, and these pages describe how to use the version that's embedded in Firefox. However, you can also run it as a standalone web application, and can then use it to debug code running in other browsers and in Node. For more details on that, see the project's GitHub repository.

+ +

新版除錯器尚未支援所有舊版除錯器的功能。請參閱新版除錯器的侷限

+ +
+

用戶介面導覽

+ +

如果要自己摸索除錯器,我們有UI 的快速導覽

+ +
+

如何

+ +

如果要知道除錯器可以做什麼,請看看以下的教學:

+ +
+ +
+ +
+

參閱

+ +
+ +
-- cgit v1.2.3-54-g00ecf