Ejemplo n.º 1
0
 /// <summary>
 /// Disposes of the debugger instance cleanly.
 /// </summary>
 public void Dispose()
 {
     State = States.Stopping;
     TheSerial.Dispose();
     TheSerial = null;
     GC.SuppressFinalize(this);
 }
Ejemplo n.º 2
0
        /// <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;
        }
Ejemplo n.º 3
0
 /// <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();
 }