mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 00:57:59 +07:00
show message if frames requested for not suspended thread
This commit is contained in:
@@ -116,8 +116,8 @@ public class JavaExecutionStack extends XExecutionStack {
|
||||
@Override
|
||||
protected void action() throws Exception {
|
||||
boolean showLibraryStackframes = DebuggerSettings.getInstance().SHOW_LIBRARY_STACKFRAMES;
|
||||
List<JavaStackFrame> frames = new ArrayList<JavaStackFrame>();
|
||||
if (!myThreadProxy.isCollected() && myDebugProcess.getSuspendManager().isSuspended(myThreadProxy)) {
|
||||
List<JavaStackFrame> frames = new ArrayList<JavaStackFrame>();
|
||||
int status = myThreadProxy.status();
|
||||
if (!(status == ThreadReference.THREAD_STATUS_UNKNOWN) &&
|
||||
!(status == ThreadReference.THREAD_STATUS_NOT_STARTED) &&
|
||||
@@ -146,8 +146,11 @@ public class JavaExecutionStack extends XExecutionStack {
|
||||
return;
|
||||
}
|
||||
}
|
||||
container.addStackFrames(frames, true);
|
||||
}
|
||||
else {
|
||||
container.errorOccurred(DebuggerBundle.message("frame.panel.frames.not.available"));
|
||||
}
|
||||
container.addStackFrames(frames, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user