/// <summary> /// Disposes of the debugger instance cleanly. /// </summary> public void Dispose() { State = States.Stopping; TheSerial.Dispose(); TheSerial = null; GC.SuppressFinalize(this); }
/// <summary> /// Stops the debugger and closes the connection. /// </summary> /// <returns>True if debugger is successfully stopped.</returns> public bool Stop() { State = States.Stopping; bool OK = TheSerial.Disconnect(); TheSerial.Dispose(); TheSerial = null; return OK; }
/// <summary> /// Initialises a new instance on the debugger but does not connect /// it to the kernel. Use <see cref="Init"/>. /// </summary> public Debugger() { TheSerial = new Serial(); }