什么是“第一次机会例外"? [英] What is a "first chance exception"?

查看:37
本文介绍了什么是“第一次机会例外"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

究竟什么是第一次机会例外?它如何以及从哪里起源于 .NET 程序?为什么它会被称为那个奇特的名字(我们在谈论什么机会")?

What exactly is a first chance exception? How and where does it originate in a .NET program? And why is it called by that peculiar name (what 'chance' are we talking about)?

推荐答案

这是一个调试概念.基本上,异常首先第一被抛出到调试器,然后到实际程序,如果它没有被处理,它会被第二次抛出到调试器,给你一个机会在应用程序本身之前和之后在您的IDE中对其进行处理.这似乎是 Microsoft Visual Studio 的发明.

It's a debugging concept. Basically exceptions are thrown to the debugger first and then to the actual program where if it isn't handled it gets thrown to the debugger a second time, giving you a chance to do something with it in your IDE before and after the application itself. This appears to be a Microsoft Visual Studio invention.

这篇关于什么是“第一次机会例外"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆