PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET It's impossible to debug code in MyApplication_UnhandledException

Reply

It's impossible to debug code in MyApplication_UnhandledException

 
Thread Tools Rate Thread
Old 15-11-2006, 09:22 PM   #1
Robert Dufour
Guest
 
Posts: n/a
Default It's impossible to debug code in MyApplication_UnhandledException


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


  Reply With Quote
Old 16-11-2006, 01:22 PM   #2
Chris Dunaway
Guest
 
Posts: n/a
Default Re: It's impossible to debug code in MyApplication_UnhandledException

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.

  Reply With Quote
Old 16-11-2006, 05:01 PM   #3
Robert Dufour
Guest
 
Posts: n/a
Default Re: It's impossible to debug code in MyApplication_UnhandledException

Chris exactly how do you attach the IDE to the running app? Learning
something new here.
Thanks for your help.
Bob
"Chris Dunaway" <dunawayc@gmail.com> wrote in message
news:1163683345.479451.175750@m73g2000cwd.googlegroups.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.
>



  Reply With Quote
Old 16-11-2006, 08:15 PM   #4
Chris Dunaway
Guest
 
Posts: n/a
Default Re: It's impossible to debug code in MyApplication_UnhandledException

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

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off