boolean (final boolean isSuspended) { if (!isSuspended) { return false; } final int status = getThreadReference().status(); if (status == ThreadReference.THREAD_STATUS_UNKNOWN || status == ThreadReference.THREAD_STATUS_NOT_STARTED || status == ThreadReference.THREAD_STATUS_ZOMBIE) { return false; } return true; /* // [jeka] with lots of threads calling threadProxy.frameCount() in advance while setting context can be costly.... // see IDEADEV-2020 try { return threadProxy.frameCount() > 0; } catch (EvaluateException e) { //LOG.assertTrue(false); // if we pause during evaluation of this method the exception is thrown // private static void longMethod() { // try { // Thread.sleep(100000); // } catch (InterruptedException e) { // e.printStackTrace(); // } // } return false; } */ }