码迷,mamicode.com
首页 > 其他好文 > 详细

异常堆栈查看说明

时间:2015-02-27 16:54:07      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            A();
        }

        private static void A()
        {
            B();
        }
        private static void B()
        {
            C();
        }
        private static void C()
        {
            throw new Exception("C异常");
        }
    }
}

 

 

 

  在 ConsoleApplication1.Program.C() 位置 d:\Users\zqzheng\Documents\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:行号 26
  在 ConsoleApplication1.Program.B() 位置 d:\Users\zqzheng\Documents\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:行号 22
  在 ConsoleApplication1.Program.A() 位置 d:\Users\zqzheng\Documents\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:行号 18
  在 ConsoleApplication1.Program.Main(String[] args) 位置 d:\Users\zqzheng\Documents\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:行号 13
  在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
  在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
  在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
  在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
  在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  在 System.Threading.ThreadHelper.ThreadStart()

 

异常堆栈查看说明

标签:

原文地址:http://www.cnblogs.com/since87/p/4303485.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!