|
|
@ -101,14 +101,21 @@ namespace ICSharpCode.SharpDevelop.Debugging |
|
|
|
public static event EventHandler DebugStopped; |
|
|
|
public static event EventHandler DebugStopped; |
|
|
|
|
|
|
|
|
|
|
|
static void OnDebugStarted(object sender, EventArgs e) |
|
|
|
static void OnDebugStarted(object sender, EventArgs e) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// OnDebugStarted runs on the main thread, but for some reason we
|
|
|
|
|
|
|
|
// have to delay the layout change a bit to work around SD2-1325
|
|
|
|
|
|
|
|
WorkbenchSingleton.SafeThreadAsyncCall(OnDebugStartedInvoked); |
|
|
|
|
|
|
|
if (DebugStarted != null) |
|
|
|
|
|
|
|
DebugStarted(null, EventArgs.Empty); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void OnDebugStartedInvoked() |
|
|
|
{ |
|
|
|
{ |
|
|
|
WorkbenchSingleton.Workbench.WorkbenchLayout.StoreConfiguration(); |
|
|
|
WorkbenchSingleton.Workbench.WorkbenchLayout.StoreConfiguration(); |
|
|
|
oldLayoutConfiguration = LayoutConfiguration.CurrentLayoutName; |
|
|
|
oldLayoutConfiguration = LayoutConfiguration.CurrentLayoutName; |
|
|
|
LayoutConfiguration.CurrentLayoutName = "Debug"; |
|
|
|
LayoutConfiguration.CurrentLayoutName = "Debug"; |
|
|
|
|
|
|
|
|
|
|
|
ClearDebugMessages(); |
|
|
|
ClearDebugMessages(); |
|
|
|
if (DebugStarted != null) |
|
|
|
|
|
|
|
DebugStarted(null, e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void OnDebugStopped(object sender, EventArgs e) |
|
|
|
static void OnDebugStopped(object sender, EventArgs e) |
|
|
|