调试时如何触发UnhandledException应用程序事件 [英] How to fire the UnhandledException Application Event when debuging

查看:57
本文介绍了调试时如何触发UnhandledException应用程序事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的应用创建了未处理的异常,它询问他们是否希望它打电话回家"并报告问题.我想测试代码,但是不能,因为如果我尝试在调试时激发未处理的异常,请在代码中的某个点键入Throw New Exception(),调试器只会在此处停止代码,而不会UnhandledException代码运行.有任何想法吗?


比尔·盖茨当心!

I created for my app unhandled exception it ask the if they want it to "phone home" and report the problem. I want to test the code, but I can't, since if I try to fire an unhandled exception when debuging, by typing Throw New Exception() at a point in the code, the debuger just stops the code there, not letting the UnhandledException code run. Any Ideas?


Bill Gates look out!

推荐答案

编译程序并使用EXE对其进行测试
Compile your program and test it using the EXE


这篇关于调试时如何触发UnhandledException应用程序事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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