Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (retired 2014) Interrogating the App Debugging: Troubleshooting Line by Line

Marit Berre
Marit Berre
2,183 Points

Debugger gets disconnected on incoming phone call

I tried this two times - and it seems as if my debugger gets disconnected from the emulator when the simulated phone call comes in. Hence I can never get the debugger to stop at the OnPause breakpoint. What am I doing wrong? Anybody else hit the same issue? Thanks.

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

I haven't seen this issue, but a search on Google indicates that it's somewhat common without a good solution. As a workaround, can you try logging from the onPause() method instead just to see how the application pauses and resumes?

Harry James
Harry James
14,780 Points

I am experiencing this issue as well. The debugger will instantly loose the connection once you start the call. Here is what I see on my side: http://gyazo.com/5d3525e39f24c6384c7ae7b22c322354

I experience this no matter where I put the debug breakpoints.