Esempio n. 1
0
        public void BeforeStatement(StatementExecutionContext context)
        {
            if (traceEnabled)
            {
                traceBuffer.AppendLine($"Line {context.Line}: {context.GetStatementText()}");
            }

            if (server.TryGetBreakpoint(context.File, context.Line, out var breakpoint))
            {
                server.OnBreak(this, breakpoint);
                currentContext = context;
                continueEvent.WaitOne();
            }
        }
Esempio n. 2
0
        public void BeforeStatement(StatementExecutionContext context)
        {
            if (traceEnabled)
            {
                traceBuffer.AppendLine($"Line {context.Line}: {context.GetStatementText()}");
            }

            if (server.TryGetBreakpoint(context.File, context.Line, out var breakpoint))
            {
                server.OnBreak(this, new BreakpointDebuggerBreak(breakpoint));
                currentContext = context;
                WaitForContinue();
            }
            else if (breakNextStatement)
            {
                breakNextStatement = false;
                server.OnBreak(this, new StepDebuggerBreak(new SourceCodeLocation(context.File, context.Line)));
                WaitForContinue();
            }
        }