IDEA-155569 Source code does not match appears when the other thread hits a breakpoint

This commit is contained in:
Egor.Ushakov
2016-05-04 15:49:36 +03:00
parent 2afb1ceb4f
commit 8049e1c09a
@@ -632,7 +632,9 @@ public class DebuggerSession implements AbstractDebuggerSession {
final DebuggerContextImpl debuggerContext =
DebuggerContextImpl.createDebuggerContext(DebuggerSession.this, suspendContext, currentThread, null);
debuggerContext.setPositionCache(position);
if (suspendContext.getThread() == currentThread) {
debuggerContext.setPositionCache(position);
}
DebuggerInvocationUtil.invokeLater(getProject(), new Runnable() {
@Override