Beispiel #1
0
        protected ProtoCore.DSASM.DebugInfo GetDebugObject(int line, int col, int eline, int ecol, int nextStep_a, int nextStep_b = ProtoCore.DSASM.Constants.kInvalidIndex)
        {
            ProtoCore.DSASM.DebugInfo debug = null;

            if (core.Options.EmitBreakpoints)
            {
                if ( (core.Options.IDEDebugMode || core.Options.WatchTestMode || core.Options.IsDeltaExecution)
                    && ProtoCore.DSASM.Constants.kInvalidIndex != line
                    && ProtoCore.DSASM.Constants.kInvalidIndex != col)
                {
                    debug = new ProtoCore.DSASM.DebugInfo(line, col, eline, ecol, core.CurrentDSFileName);
                    debug.nextStep.Add(nextStep_a);

                    if (ProtoCore.DSASM.Constants.kInvalidIndex != nextStep_b)
                        debug.nextStep.Add(nextStep_b);
                }
            }

            return debug;
        }
Beispiel #2
0
 public Breakpoint(DebugInfo di, string sourceLocation = null)
 {
     Location = di.Location;
 }