zoukankan      html  css  js  c++  java
  • 异常堆栈查看说明

    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:UserszqzhengDocumentsVisual Studio 2012ProjectsConsoleApplication1ConsoleApplication1Program.cs:行号 26
      在 ConsoleApplication1.Program.B() 位置 d:UserszqzhengDocumentsVisual Studio 2012ProjectsConsoleApplication1ConsoleApplication1Program.cs:行号 22
      在 ConsoleApplication1.Program.A() 位置 d:UserszqzhengDocumentsVisual Studio 2012ProjectsConsoleApplication1ConsoleApplication1Program.cs:行号 18
      在 ConsoleApplication1.Program.Main(String[] args) 位置 d:UserszqzhengDocumentsVisual Studio 2012ProjectsConsoleApplication1ConsoleApplication1Program.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()
    
  • 相关阅读:
    为什么使用内部类?怎样使用内部类? 2016年12月15号
    java内部类 2016年12月13号
    接口与抽象类的区别与联系 2016年12月13日
    多态的向上转型和向下转型 2016.12.8
    构造器的调用顺序 2016.12.8
    static final 和final的区别 2016.12.07
    根据进程号查询占用资源多的线程
    Intellij idea启动项目提示"ClassNotFoundException"
    IntelliJ IDEA setup JDK无效
    (转)面试合集
  • 原文地址:https://www.cnblogs.com/since87/p/4303485.html
Copyright © 2011-2022 走看看