trinityalps
trinityalps

Reputation: 397

Android studio, debugging an infinite loop

I am trying to debug an infinite loop in my program in android studio. I have a lot of breakpoints set up but every time I try to run it, it gets to a point where it just says "The application is running" and stalls out until the phone runs out of memory. What tool in Android studio is there to see the flow of the program? Specifically what methods are being called and which one is being called ad infinitum.

Upvotes: 2

Views: 1849

Answers (1)

Marcin Orlowski
Marcin Orlowski

Reputation: 75629

To see your code execution stopped on breakpoint, you need to run it in debug mode Shift+F9. Normal run (Shift+F10) is not affected by breakpoints.

See this article: https://developer.android.com/tools/debugging/debugging-studio.html

Upvotes: 1

Related Questions