/// <summary> /// Registers Jit Debugger rooted from supplied infra binaries Path and returns cleanup command. /// </summary> public static DebuggingEngineCommand Apply(DirectoryInfo infraPath, string customJitDebuggerCommand) { ExecutionEventLog.RecordStatus("Starting up DebuggingEngine."); DebuggingEngineCommand command = new DebuggingEngineCommand(); CdbUtilities.InstallCdb(); if (!String.IsNullOrEmpty(customJitDebuggerCommand)) { JitRegistrationUtilities.Register(customJitDebuggerCommand); } else { JitRegistrationUtilities.Register(GenerateJitDebuggerCommand(infraPath)); } return(command); }
/// <summary> /// Provides stateless cleanup without having to run full infra cycle. /// </summary> public static void Rollback() { JitRegistrationUtilities.Unregister(); }