14 changed files with 51 additions and 111 deletions
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)
|
||||
|
||||
using System.Linq; |
||||
using Debugger; |
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Debugging; |
||||
using ICSharpCode.SharpDevelop.Editor; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Services |
||||
{ |
||||
public class RunToCursorCommand : AbstractMenuCommand |
||||
{ |
||||
public override void Run() |
||||
{ |
||||
ITextEditor editor = SD.GetActiveViewContentService<ITextEditor>(); |
||||
if (editor == null || WindowsDebugger.CurrentProcess == null) |
||||
return; |
||||
WindowsDebugger.CurrentProcess.RunTo(editor.FileName, editor.Caret.Line, editor.Caret.Column); |
||||
} |
||||
} |
||||
} |
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)
|
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Debugging; |
||||
using ICSharpCode.SharpDevelop.Editor; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Services |
||||
{ |
||||
public class SetCurrentStatementCommand : AbstractMenuCommand |
||||
{ |
||||
public override void Run() |
||||
{ |
||||
ITextEditor textEditor = SD.GetActiveViewContentService<ITextEditor>(); |
||||
|
||||
if (textEditor == null || DebuggerService.CurrentDebugger == null) |
||||
return; |
||||
|
||||
DebuggerService.CurrentDebugger.SetInstructionPointer(textEditor.FileName, textEditor.Caret.Line, textEditor.Caret.Column, false); |
||||
} |
||||
} |
||||
} |
@ -1,22 +0,0 @@
@@ -1,22 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
|
||||
namespace Debugger |
||||
{ |
||||
public class GetValueException: DebuggerException |
||||
{ |
||||
public GetValueException(string error, System.Exception inner):base(error, inner) |
||||
{ |
||||
} |
||||
|
||||
public GetValueException(string errorFmt, params object[] args):base(string.Format(errorFmt, args)) |
||||
{ |
||||
} |
||||
|
||||
public GetValueException(string error):base(error) |
||||
{ |
||||
} |
||||
} |
||||
} |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
|
||||
namespace Debugger.Tests |
||||
{ |
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method)] |
||||
public class ExpandAttribute: Attribute |
||||
{ |
||||
|
||||
} |
||||
} |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
|
||||
namespace Debugger.Tests |
||||
{ |
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method)] |
||||
public class IgnoreAttribute: Attribute |
||||
{ |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue