コード例 #1
0
 public void MainLoop(IGameDebuggerHost gameDebuggerHost)
 {
     host = gameDebuggerHost;
     host.RegisterTarget();
     while (!requestedExit)
     {
         Thread.Sleep(10);
     }
 }
コード例 #2
0
        public void MainLoop(IGameDebuggerHost gameDebuggerHost)
        {
            host = gameDebuggerHost;
            host.RegisterTarget();

            Log.MessageLogged += Log_MessageLogged;

            // Log suppressed exceptions in scripts
            ScriptSystem.Log.MessageLogged += Log_MessageLogged;
            Scheduler.Log.MessageLogged    += Log_MessageLogged;

            Log.Info("Starting debugging session");

            while (!requestedExit)
            {
                Thread.Sleep(10);
            }
        }
コード例 #3
0
        public void MainLoop(IGameDebuggerHost gameDebuggerHost)
        {
            host = gameDebuggerHost;
            string callbackChannelEndpoint = "Stride/Debugger/GameDebuggerTarget/CallbackChannel";

            using (var callbackHost = new NpHost(callbackChannelEndpoint, null, null))
            {
                callbackHost.AddService <IGameDebuggerTarget>(this);
                host.RegisterTarget(callbackChannelEndpoint);

                Log.MessageLogged += Log_MessageLogged;

                // Log suppressed exceptions in scripts
                ScriptSystem.Log.MessageLogged += Log_MessageLogged;
                Scheduler.Log.MessageLogged    += Log_MessageLogged;

                Log.Info("Starting debugging session");

                while (!requestedExit)
                {
                    Thread.Sleep(10);
                }
            }
        }
コード例 #4
0
        public void MainLoop(IGameDebuggerHost gameDebuggerHost)
        {
            host = gameDebuggerHost;
            host.RegisterTarget();

            Log.MessageLogged += Log_MessageLogged;

            // Log suppressed exceptions in scripts
            ScriptSystem.Log.MessageLogged += Log_MessageLogged;
            Scheduler.Log.MessageLogged += Log_MessageLogged;

            Log.Info("Starting debugging session");

            while (!requestedExit)
            {
                Thread.Sleep(10);
            }
        }
コード例 #5
0
 public void MainLoop(IGameDebuggerHost gameDebuggerHost)
 {
     host = gameDebuggerHost;
     host.RegisterTarget();
     while (!requestedExit)
     {
         Thread.Sleep(10);
     }
 }