Ejemplo n.º 1
0
        public ToolStripItem[] BuildSubmenu(Codon codon, object owner)
        {
            List <ToolStripItem> items = new List <ToolStripItem>();

            ITextEditorControlProvider provider = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow.ActiveViewContent as ITextEditorControlProvider;

            BreakpointBookmark point = null;

            foreach (BreakpointBookmark breakpoint in DebuggerService.Breakpoints)
            {
                if ((breakpoint.FileName == provider.TextEditorControl.FileName) &&
                    (breakpoint.LineNumber == provider.TextEditorControl.ActiveTextAreaControl.Caret.Line))
                {
                    point = breakpoint;
                    break;
                }
            }

            if (point != null)
            {
                foreach (string item in BreakpointAction.GetNames(typeof(BreakpointAction)))
                {
                    items.Add(MakeItem("${res:MainWindow.Windows.Debug.Conditional.Breakpoints." + item + "}", item, point, point.Action.ToString(), delegate(object sender, EventArgs e) { HandleItem(sender); }));
                }
            }

            return(items.ToArray());
        }
Ejemplo n.º 2
0
 public BreakpointBookmark(FileName fileName, Location location, BreakpointAction action, string scriptLanguage, string script)
     : base(fileName, location)
 {
     this.action         = action;
     this.scriptLanguage = scriptLanguage;
     this.condition      = script;
 }
Ejemplo n.º 3
0
 public BreakpointBookmark(MemberReference member, AstLocation location, ILRange range, BreakpointAction action, DecompiledLanguages language) : base(member, location)
 {
     this.action   = action;
     this.ILRange  = range;
     this.Tooltip  = string.Format("Language:{0}, Line:{1}, IL range:{2}-{3}", language.ToString(), location.Line, range.From, range.To);
     this.Language = language;
 }
Ejemplo n.º 4
0
		public BreakpointBookmark(MemberReference member, AstLocation location, ILRange range, BreakpointAction action, DecompiledLanguages language) : base(member, location)
		{
			this.action = action;
			this.ILRange = range;
			this.Tooltip = string.Format("Language:{0}, Line:{1}, IL range:{2}-{3}", language.ToString(), location.Line, range.From, range.To);
			this.Language = language;			
		}
 public BreakpointBookmark(IMemberRef member, TextLocation location, int functionToken, ILRange range, BreakpointAction action)
     : base(member, location)
 {
     this.action        = action;
     this.FunctionToken = functionToken;
     this.ILRange       = range;
     this.Tooltip       = string.Format("Line:{0}, IL range:{1}-{2}", location.Line, range.From, range.To);
 }
Ejemplo n.º 6
0
 public BreakpointBookmark(IMemberRef member, TextLocation location, int functionToken, ILRange range, BreakpointAction action)
     : base(member, location)
 {
     this.action = action;
     this.FunctionToken = functionToken;
     this.ILRange = range;
     this.Tooltip = string.Format("Line:{0}, IL range:{1}-{2}", location.Line, range.From, range.To);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Create a breakpoint.
 /// </summary>
 /// <param name="aBreakAt">
 /// The value at which this breakpoint should trigger.
 /// </param>
 /// <param name="aType">The type of this breakpoint.</param>
 /// <param name="aAction">
 /// The action to be invoked when this breakpoint is triggered.
 /// </param>
 /// <param name="aRegId">
 /// The ID of the register to which this breakpoint
 /// is hooked. This value is expected to be null
 /// for non-register breakpoints.
 /// </param>
 /// <param name="aBreakAtAny">
 /// If this breakpoint should disregard the break at
 /// value and trigger whenever the base condition is
 /// met.
 /// </param>
 public Breakpoint(int aBreakAt,
                   BreakpointType aType,
                   BreakpointAction aAction,
                   Registers?aRegId = null,
                   bool aBreakAtAny = false)
 {
     BreakAt         = aBreakAt;
     Type            = aType;
     Action          = aAction;
     RegisterId      = aRegId;
     BreakAtAnyValue = aBreakAtAny;
 }
Ejemplo n.º 8
0
 public BreakpointBookmark(string fileName, IDocument document, TextLocation location, BreakpointAction action, string scriptLanguage, string script) : base(fileName, document, location)
 {
     this.action         = action;
     this.scriptLanguage = scriptLanguage;
     this.condition      = script;
 }
		public DecompiledBreakpointBookmark(FileName fileName, Location location, BreakpointAction action, string scriptLanguage, string script) 
			: base(fileName, location, action, scriptLanguage, script)
		{
			
		}
Ejemplo n.º 10
0
		public BreakpointBookmark(FileName fileName, Location location, BreakpointAction action, string scriptLanguage, string script) : base(fileName, location)
		{
			this.action = action;
			this.scriptLanguage = scriptLanguage;
			this.condition = script;
		}
Ejemplo n.º 11
0
 public DecompiledBreakpointBookmark(FileName fileName, Location location, BreakpointAction action, string scriptLanguage, string script)
     : base(fileName, location, action, scriptLanguage, script)
 {
 }
		public BreakpointBookmark(string fileName, IDocument document, TextLocation location, BreakpointAction action, string scriptLanguage, string script) : base(fileName, document, location)
		{
			this.action = action;
			this.scriptLanguage = scriptLanguage;
			this.condition = script;
		}
		public DecompiledBreakpointBookmark(MemberReference member, int ilFrom, int ilTo, FileName fileName, Location location, BreakpointAction action, string scriptLanguage, string script) : base(fileName, location, action, scriptLanguage, script)
		{
			this.MemberReference = member;
			this.ILFrom = ilFrom;
			this.ILTo = ILTo;
		}