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

It's impossible to debug code in MyApplication_UnhandledException

P: n/a
Great, they added a new feature I understand <GGGG>, the application events.
And you have a new super event that lets you decide what to do with
unhandled application errors.
But its impossible to single step through the code you write in it if you
throw and unhandled exception in your code in the IDE to test what you
wrote.
Great thinking guys!
Anybody found a way around this spark of genius?

Any insight would be appreciated.
Bob
Nov 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Robert Dufour wrote:
Great, they added a new feature I understand <GGGG>, the application events.
And you have a new super event that lets you decide what to do with
unhandled application errors.
But its impossible to single step through the code you write in it if you
throw and unhandled exception in your code in the IDE to test what you
wrote.
Great thinking guys!
Anybody found a way around this spark of genius?
Run your app outside of the IDE. Then attach the IDE to the running
app. It will then hit your breakpoint in the exception handler.

Nov 16 '06 #2

P: n/a
Chris exactly how do you attach the IDE to the running app? Learning
something new here.
Thanks for your help.
Bob
"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Robert Dufour wrote:
>Great, they added a new feature I understand <GGGG>, the application
events.
And you have a new super event that lets you decide what to do with
unhandled application errors.
But its impossible to single step through the code you write in it if you
throw and unhandled exception in your code in the IDE to test what you
wrote.
Great thinking guys!
Anybody found a way around this spark of genius?

Run your app outside of the IDE. Then attach the IDE to the running
app. It will then hit your breakpoint in the exception handler.

Nov 16 '06 #3

P: n/a
Robert Dufour wrote:
Chris exactly how do you attach the IDE to the running app? Learning
something new here.
Tools -Attach To Process

Or

Ctrl-Alt-P

Nov 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.