Debugging an Android widget in Intellij IDEA

When debugging a widget, each breakpoint triggers an ANR .
There is a solution for Eclipse , but I can not find a solution for IDEA.

+6
source share
1 answer

I could not reproduce ANR. I am using IntelliJ Idea 12, have tried it with Android 4.1.2 and 2.3.3 emulators.

But if you find that the Eclipse solution works for you, there is a way to connect to the running process in the IntelliJ debugger. First, you just “Run” the application, and then attach the debugger to it using these steps . I set a breakpoint in the onUpdate () method of the widget and it worked successfully.

0
source

Source: https://habr.com/ru/post/905208/


All Articles