Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

調試 Android 軟件 #1

Closed
ssrlive opened this issue Nov 24, 2021 · 0 comments
Closed

調試 Android 軟件 #1

ssrlive opened this issue Nov 24, 2021 · 0 comments

Comments

@ssrlive
Copy link
Member

ssrlive commented Nov 24, 2021

  1. 修改 build.gradle(Module: ssrDroid.app) 文件,添加如下這些調試相關選項。
android {
    buildTypes {
        debug {
            debuggable true
            jniDebuggable true
            renderscriptDebuggable true
        }
    }
}
  1. 點那個調試(昆蟲)圖標在真機或模擬器内運行程序。然後再點 Attach Debugger to Android Process 圖標,在彈出的對話框内將所有關聯進程都挂上調試器,否則將可能不能命中你設下的斷點。

image

參考文章

如何调试Android Native Framework 或者 這裏

如何调试Android Framework?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant