suspendedThreads.remove(currentSuspendedThread);
// Tell the execution context that it is time to resume.
if (suspendedThreads.isEmpty()) {
getDebugController().setShouldBlockUI(true);
ec.resumeThread(currentSuspendedThread);
getDebugController().blockUntilCompletionOrInterruption();
} else if (shouldStepThread) {
// since we are stepping, we would like to block the UI until the next interruption (hopefully it's the thread being stepped)
getDebugController().setShouldBlockUI(true);