Print the current Stack Trace in .NET without any exception

 from https://stackoverflow.com/questions/531695/how-to-print-the-current-stack-trace-in-net-without-any-exception


System.Diagnostics.StackTrace t = new System.Diagnostics.StackTrace();



-		t	{   於 AAAA.Pages.Rule.PAGEA.ResetVerifyOKControl()
   於 AAAA.Pages.Rule.PAGEA.ClearData()
   於 AAAA.Pages.Rule.PAGEA.LotInput1_ControlException(Object sender, ControlExceptionArgs e)
   於 AAAA.UserControls.LotInput.OnControlException(ControlExceptionArgs controlExceptionArgs)
   於 AAAA.UserControls.LotInput.ttbLotNumber_TextChanged(Object sender, EventArgs e)
   於 AAAA.UserControls.LotInput.LotBlockInitialize()
   於 AAAA.Pages.Rule.PAGEA.UserInfoBlock1_ValidationSuccess(Object sender, ValidateSuccessArgs e)
   於 AAAA.UserControls.UserInfoBlock.OnValidateSuccess()
   於 AAAA.UserControls.UserInfoBlock.ttbUser_TextChanged(Object sender, EventArgs e)
   於 System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
   於 System.Web.UI.Page.RaiseChangedEvents()
   於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   於 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   於 System.Web.UI.Page.ProcessRequest()
   於 System.Web.UI.Page.ProcessRequest(HttpContext context)
   於 ASP.AAAA_rule_PAGEA_aspx.ProcessRequest(HttpContext context)
   於 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   於 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   於 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
   於 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
   於 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
   於 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   於 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   於 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   於 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
}	System.Diagnostics.StackTrace

留言

熱門文章