By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,170 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,170 IT Pros & Developers. It's quick & easy.

How to find empty catch() block?

P: n/a
Is there a way to break everytime a catch() block is hit? I don't know
where these exists but would like to find some of them by knowing they
are getting hit.

Thanks,
Brett

May 16 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
CTRL+ALT+E, set the debugger to break on all exceptions. You won't be able
to set the debugger to fire when a catch block is hit. However, you can set
the debugger to break when an exception is thrown. Same thing, different
perspective.

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
Is there a way to break everytime a catch() block is hit? I don't know
where these exists but would like to find some of them by knowing they
are getting hit.

Thanks,
Brett

May 16 '06 #2

P: n/a
Brett,

Log your Catch block info and view your log
or
Set break points on every catch statement

Sa

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
Is there a way to break everytime a catch() block is hit? I don't know
where these exists but would like to find some of them by knowing they
are getting hit.

Thanks,
Brett

May 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.