Android Studio breakpoints off of main thread not working

android android-studio debugging

448 просмотра

1 ответ

1 Репутация автора

I'm trying to debug my application. I know for a fact that code in a given class A is executing because I have log statements in methods in that class printing when I run the app, however the problem is that when I set breakpoints on that code which I know is executing off of the main thread in class A, and debug the app, the breakpoints don't pause execution.

Breakpoints I have set in onResume() of an Activity class B are executing, so there's something wrong with how Android Studio is choosing to execute breakpoints.

My issue seems similar to this: Android Studio breakpoints not working in doinbackground

I've tried that user's workaround but with no luck.

Автор: v1renmen Источник Размещён: 08.11.2017 10:43

Ответы (1)

0 плюса

1 Репутация автора

I deleted my .gradle, and .AndroidStudioPreview folders, then restarted my computer and restarted Android Studio. My breakpoints are working properly now. So it was an issue with Android Studio, and the nuclear option worked.

Автор: v1renmen Размещён: 10.11.2017 02:45
Вопросы из категории :