[Monodevelop-patches-list] r1110 - in trunk/MonoDevelop: build/AddIns src/Main/Base/Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Mar 4 15:17:26 EST 2004
Author: tberman
Date: 2004-03-04 15:17:26 -0500 (Thu, 04 Mar 2004)
New Revision: 1110
Modified:
trunk/MonoDevelop/build/AddIns/SharpDevelopCore.addin
trunk/MonoDevelop/src/Main/Base/Commands/DebuggerCommands.cs
Log:
adding pause/resume.
Modified: trunk/MonoDevelop/build/AddIns/SharpDevelopCore.addin
===================================================================
--- trunk/MonoDevelop/build/AddIns/SharpDevelopCore.addin 2004-03-04 19:53:06 UTC (rev 1109)
+++ trunk/MonoDevelop/build/AddIns/SharpDevelopCore.addin 2004-03-04 20:17:26 UTC (rev 1110)
@@ -793,6 +793,10 @@
<MenuItem id = "DebugMenu"
label = "Debug">
+ <MenuItem id = "ToggleRunning"
+ label = "Pause/Resume"
+ class = "MonoDevelop.Commands.ToggleRunning"/>
+
<MenuItem id = "DebugStepOver"
label = "Step Over"
class = "MonoDevelop.Commands.StepOver"/>
Modified: trunk/MonoDevelop/src/Main/Base/Commands/DebuggerCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/DebuggerCommands.cs 2004-03-04 19:53:06 UTC (rev 1109)
+++ trunk/MonoDevelop/src/Main/Base/Commands/DebuggerCommands.cs 2004-03-04 20:17:26 UTC (rev 1110)
@@ -9,6 +9,18 @@
namespace MonoDevelop.Commands
{
+ public class ToggleRunning : AbstractMenuCommand
+ {
+ public override void Run ()
+ {
+ DebuggingService dbgr = (DebuggingService)ServiceManager.Services.GetService (typeof (DebuggingService));
+ if (dbgr.IsRunning)
+ dbgr.Pause ();
+ else
+ dbgr.Resume ();
+ }
+ }
+
public class StepOver : AbstractMenuCommand
{
public override void Run ()
More information about the Monodevelop-patches-list
mailing list