public void CreateAndAttachToProcess(string commandLine, string initialDirectory) { if (_debugKernel) { throw new DebugMonitorException("The monitor is debugging a kernel."); } try { _debuggee.CreateAndAttachProcess(commandLine, initialDirectory); _debuggerUpdatedEvent.Set(); } catch (InvalidCastException ic) { throw new DebugMonitorException("Create failed.", ic); } }