/// <summary> /// Process the given exception event. /// </summary> protected internal virtual void OnExceptionEvent(Events.Jdwp.Exception @event, DalvikThread thread) { // Log DLog.Debug(DContext.VSDebuggerEvent, "OnExceptionEvent location: {0}", @event.Location); // Save exception in thread thread.CurrentException = @event.ExceptionObject; }
/// <summary> /// Process the given exception event. /// </summary> protected internal virtual void OnExceptionEvent(Events.Jdwp.Exception @event, DalvikThread thread) { // Log DLog.Debug(DContext.VSDebuggerEvent, "OnExceptionEvent location: {0}", @event.Location); // Note that Process.OnSuspended() has not been called yet, and needs to be called // if the implementation does not decide to continue in spite of the exception. Debugger.Process.OnSuspended(SuspendReason.Exception, thread); // Save exception in thread if (thread != null) { thread.CurrentException = @event.ExceptionObject; } }