|
|
|
@ -8,6 +8,9 @@
@@ -8,6 +8,9 @@
|
|
|
|
|
using System; |
|
|
|
|
using System.Diagnostics; |
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
|
|
|
|
using ICSharpCode.TextEditor; |
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.SharpDevelop.Project.Commands |
|
|
|
|
{ |
|
|
|
@ -87,4 +90,18 @@ namespace ICSharpCode.SharpDevelop.Project.Commands
@@ -87,4 +90,18 @@ namespace ICSharpCode.SharpDevelop.Project.Commands
|
|
|
|
|
DebuggerService.CurrentDebugger.StepOut(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public class ToggleBreakpointCommand : AbstractMenuCommand |
|
|
|
|
{ |
|
|
|
|
public override void Run() |
|
|
|
|
{ |
|
|
|
|
IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow; |
|
|
|
|
|
|
|
|
|
if (window == null || !(window.ViewContent is ITextEditorControlProvider)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
TextEditorControl textEditor = ((ITextEditorControlProvider)window.ViewContent).TextEditorControl; |
|
|
|
|
DebuggerService.ToggleBreakpointAt(textEditor.Document, textEditor.FileName, textEditor.ActiveTextAreaControl.Caret.Line); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|