コード例 #1
0
        protected override void DoHandle([NotNull] GameHttpContext context, [NotNull] IDebugger debugger)
        {
            var gameStepResult = debugger.Restart();
            var response       = new DebuggerStepResponse
            {
                StoppedOnBreakpoint = gameStepResult.StoppedInBreakpoint,
                GameState           = debugger.State.GameState
            };

            context.SendResponse(response);
        }
コード例 #2
0
ファイル: DebuggingConsole.cs プロジェクト: dbremner/zlr
        public void Activate()
        {
            if (active != ActiveState.NotStarted)
                throw new InvalidOperationException("Wrong state");

            active = ActiveState.Active;

            dbg = zm.Debug();
            src = new SourceCache(sourcePath);

            io.PutString("ZLR Debugger\n");
            dbg.Restart();
            ShowStatus();
        }
コード例 #3
0
ファイル: DebuggingConsole.cs プロジェクト: hackerlank/zlr
        public void Activate()
        {
            if (active != ActiveState.NotStarted)
            {
                throw new InvalidOperationException("Wrong state");
            }

            active = ActiveState.Active;

            dbg = zm.Debug();
            src = new SourceCache(sourcePath);

            io.PutString("ZLR Debugger\n");
            dbg.Restart();
            ShowStatus();
        }