什么是"第一次机会异常"? [英] What is a "first chance exception"?

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

问题描述

到底什么是第一次机会异常?如何以及在哪里它在.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天全站免登陆