From a065e04d529da1d847b5062a12c46d916408bf32 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 21:46:22 -0500 Subject: update based on https://github.com/mdn/yari/issues/2028 --- files/zh-tw/archive/b2g_os/debugging/index.html | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 files/zh-tw/archive/b2g_os/debugging/index.html (limited to 'files/zh-tw/archive/b2g_os/debugging/index.html') diff --git a/files/zh-tw/archive/b2g_os/debugging/index.html b/files/zh-tw/archive/b2g_os/debugging/index.html deleted file mode 100644 index 1084a2f201..0000000000 --- a/files/zh-tw/archive/b2g_os/debugging/index.html +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: 在 Boot to Gecko 上除錯 -slug: Archive/B2G_OS/Debugging -translation_of: Archive/B2G_OS/Debugging ---- -

基本上,在 B2G 有兩種除錯的方法。開發者可以在電腦上藉由 Firefox 15 以上的版本來 執行 Gaia (以及很多相容於 B2G 的 web apps )來進行高階的除錯。這樣會讓開發者可以利用 Firefox 裡面優秀的 開發工具 開發工具來幫忙除錯,就像是在抓 web app 的 bug 一樣。

-

開發者也可以在 gdb 除錯器的控制之下,使用自己的行動裝置來執行 B2G。

-

使用 Firefox 除錯 Gaia 和 web apps

-

<快馬加鞭中,請耐心等待>

-

使用 gdb 除錯 B2G

-

用 gdb 來對 Boot to Gecko 除錯很簡單。只要用 run-gdb.sh 這個 script 指令,就會重新啟動 B2G 並在 gdb 的控制之下執行:

-
./run-gdb.sh
-
-

如果 B2G 已經在執行了,而現在只想要 attach,就要執行下面這個 script 指令:

-
./run-gdb.sh attach
-
-

OOP

-

首先,用「MOZ_DEBUG_CHILD_PROCESS=1 ./run-gdb.sh」啟動 b2g,接著當啟動 OOP app 的時候,會顯示 plugin-container 的 PID。使用<./run-gdb.sh attach PID>啟動第二個 gdb instance。

-

必須在很短的時間之內啟動除錯器的第二個 instance,且在啟動的短時間之內,就要按 c 繼續。

-

更多...

-

我們需要在這裡添加更多內容。

-- cgit v1.2.3-54-g00ecf