public void MainLoop(IGameDebuggerHost gameDebuggerHost) { host = gameDebuggerHost; host.RegisterTarget(); while (!requestedExit) { Thread.Sleep(10); } }
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); } }
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); } } }