internal ExceptionInfoResponse HandleExceptionInfoRequest(ExceptionInfoArguments arguments)
        {
            if (this.PendingExceptionThread == arguments.ThreadId)
            {
                return(this.pendingException);
            }

            return(new ExceptionInfoResponse()
            {
                Description = "Sample Exception"
            });
        }
Esempio n. 2
0
        protected override ExceptionInfoResponse HandleExceptionInfoRequest(ExceptionInfoArguments arguments)
        {
            try
            {
                if (session == null)
                {
                    throw new InvalidOperationException();
                }
                var exceptionInfo = session.GetExceptionInfo();

                return(new ExceptionInfoResponse()
                {
                    Description = exceptionInfo
                });
            }
            catch (Exception ex)
            {
                Log(ex.Message, LogCategory.DebugAdapterOutput);
                throw new ProtocolException(ex.Message, ex);
            }
        }
Esempio n. 3
0
 protected override ExceptionInfoResponse HandleExceptionInfoRequest(ExceptionInfoArguments arguments)
 {
     return(this.ExceptionManager.HandleExceptionInfoRequest(arguments));
 }
Esempio n. 4
0
 protected override ExceptionInfoResponse HandleExceptionInfoRequest(ExceptionInfoArguments arguments)
 {
     throw new ProtocolException("Not Implemented");
 }