Esempio n. 1
0
        private void OnStorySyncFinished()
        {
            DebugInfoSync.Finish();

            if (DebugInfoSync.Matches)
            {
                StartDebugSession();
            }
            else
            {
                OnDebugSessionEnded();

                SendOutput("stderr", $"Could not start debugging session - debug info does not match loaded story.\r\n");

                var reasons = "   " + DebugInfoSync.Reasons.Aggregate((a, b) => a + "\r\n   " + b);
                SendOutput("console", $"Mismatches:\r\n{reasons}\r\n");
            }

            DebugInfoSync = null;

            if (ContinueAfterSync)
            {
                if (PauseRequested && DebuggingStory)
                {
                    SendContinue(DbgContinue.Types.Action.StepInto);
                }
                else
                {
                    SendContinue(DbgContinue.Types.Action.Continue);
                }
            }
        }
Esempio n. 2
0
 private void SynchronizeStoryWithBackend(bool continueAfterSync)
 {
     DebugInfoSync     = new DebugInfoSync(DebugInfo);
     ContinueAfterSync = continueAfterSync;
     DbgCli.SendSyncStory();
 }