title: Cannot debug onPostExecute within Android Studio
body: <p>I am trying to debug an AsyncTask within Android Studio, however the debugger is not allowing me to step into the <code>onPostExecute()</code> method and I'm not sure why. I am sure that it is executing because I put a Toast that shows, however I want to debug within there and for some reason I can't. Is a reason why this would be?</p>
  
  <pre><code>private class LoadObject extends AsyncTask&lt;Void, Void, Void&gt; {
  
      private ProgressDialog dialog;
      private Context context;
      String postAddress;
  
  
      public LoadObject(Context context) {
          this.context = context;
          dialog = new ProgressDialog(context);
      }
  
      @Override
      protected void onPreExecute() {
          dialog.setMessage("Loading...");
          dialog.setCanceledOnTouchOutside(false);
          dialog.show();
      }
  
      @Override
      protected void onPostExecute(Void result) {
          Toast.makeText(context, "OnPostExecute", Toast.LENGTH_SHORT).show();
  
          functionToExecute();
  
          if(dialog!=null &amp;&amp; dialog.isShowing()){
              dialog.dismiss();
          }
  
          bLoaded = true;
      }
  
      @Override
      protected Void doInBackground(Void... params) {
          try {
              postApi.postAPI(postAddress);
          } catch (Exception e) {
              e.printStackTrace();
          }
  
          return null;
      }
  }
  </code></pre>