IntelliJ/Android Studio debugging: Breakpoint in callback does not get called
<p>I am using Retrofit in my Application, like this:</p>

<pre><code>    beforeFubar();
    MyRetrofitApi.getFoo(new Callback&lt;Foo&gt;() {
        @Override
        public void success(Foo arg0, Response arg1) {
        successFubar();

        }

        @Override
        public void failure(RetrofitError arg0) {
        failureFubar(); 
        }
    });
</code></pre>

<p>I put my breakpoints at</p>

<ul>
<li><code>beforeFubar()</code>,</li>
<li><code>successFubar()</code></li>
<li><code>failureFubar()</code></li>
</ul>

<p>Breakpoint at <code>beforeFubar()</code> gets called correctly and executions stops</p>

<p>BUT</p>

<p>Breakpoints at <code>successFubar()</code> and <code>failureFubar()</code> do not get called (but they are executed)</p>

<p>Please, what am I missing here?</p>

<hr>

<p><strong>EDIT</strong></p>

<p>it seems that the issue gets solved if I set Suspend All when I set the breakpoint.</p>

<p>Please what is your experience? Does this solve the problem?</p>

<p><a href="https://i.stack.imgur.com/ANPwM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ANPwM.png" alt="enter image description here"></a></p>