2

I want to set breakpoints in UI thread and Background thread. I put a breakpoint at the start of run() method in Background Thread and another break point at variable in UI thread, I want to examine. I set break point property to suspend all. Once I hit the break point at run() method in background thread, I am stepping over the code line by line. But I am unable to go to the UI thread by doing this.

Can some one explain how to examine values in both threads at the same time?

I am using Android Studio.

Harshad Pansuriya
  • 20,189
  • 8
  • 67
  • 95
Kiran
  • 747
  • 2
  • 10
  • 35
  • No, I am using Android Studio. – Kiran Oct 13 '13 at 18:11
  • Debugging threaded code is always a bit of a pain. I would advise that you rather try to use some onscreen output of values for this purpose. Alternately use the android [Log](http://developer.android.com/reference/android/util/Log.html) to output values. – free3dom Oct 14 '13 at 07:24
  • I have faced this problem too. If I find a solution I will share it with you. – ondermerol Apr 15 '15 at 18:44

0 Answers0