title: Android Studio threaded debugging
body: <p>I've been having trouble debugging a multithreaded app with Android Studio 1.1. It seems as if when a breakpoint is hit all other threads also stop, not just the one with the breakpoint. I created a simple test app with the following method in the Activity's onCreate. </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      Thread a = new Thread("thread-a") {
          @Override
          public void run() {
              Log.v("thread", "thread-a");
          }
      };
  
      Thread b = new Thread("thread-b") {
          @Override
          public void run() {
              Log.v("thread", "thread-b");
          }
      };
  
      a.start();
      b.start();
  }
  </code></pre>
  
  <p>I set breakpoints at the Log.v lines in thread-a and thread-b and then I run it in debug mode on my Lollipop Nexus 5.</p>
  
  <p>When the app starts it hits the breakpoint in thread-a but the first problem I notice is that the app's UI is blank as if the main thread is paused. Next I went to see that the breakpoint in thread-b is also hit so I pull up the Threads view in Android Studio's debugger but when I go to expand the thread-b arrow there's nothing there. When I expand the main thread it shows it is paused somewhere in onStart().</p>
  
  <p><img src="https://i.stack.imgur.com/79t8m.png" alt="Android Studio screenshot"></p>
  
  <p>Am I doing something wrong or is this debugger incapable of debugging multiple threads at once?</p>