private void ResetDebugSession()
{
CurrentDebugger = null;
SetDebuggers(null);
Project = null;
if (lastDocument != null)
{
lastDocument.ClearDebugHighlight();
lastDocument = null;
}
Dispatcher.UIThread.InvokeAsync(() =>
{
if (DebugSessionEnded != null)
{
DebugSessionEnded(this, new EventArgs());
}
_shell.CurrentPerspective = Perspective.Editor;
});
}