Android app crashes with SIGABRT Signal 6 only while Eclipse debugging

前端 未结 4 549
北恋
北恋 2020-11-28 08:24

I have an app that runs perfectly fine on a device without a debugger attached. However, I have a problem when debugging in Eclipse:

When the main thread is susp

4条回答
  •  渐次进展
    2020-11-28 09:09

    android intentionally kills the process because it thinks the UI thread is hung, so its a ANR right. for debugging purposes you can,

    Go to Settings -> Developer options and check Show all ANRs.

    This will show an App Not Responding dialog for apps running in the background. You can click the Wait button in the dialog to prevent the system from killing your process until the debugger attaches. Note that the dialog is opened automatically for apps running in the foreground. For background apps, you have to enable this option

提交回复
热议问题