|
-
Dec 8th, 2004, 04:47 AM
#1
Thread Starter
Addicted Member
debugger stops at application.Run on unhandled error
when i get an unhadled error the dubbuger stops at the main procedure at -->"Application.Run(new Form1())" and the stack is empty. But if i run the application without the debuger a must more informative window pops up giving all the error info i want. How can i get the same behaviour when working inside the IDE
thnks in advance
-
Dec 8th, 2004, 05:37 AM
#2
Junior Member
Re: debugger stops at application.Run on unhandled error
Use error handling like this :
Code:
Try
' your code
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
-
Dec 8th, 2004, 05:42 AM
#3
Thread Starter
Addicted Member
Re: debugger stops at application.Run on unhandled error
i know about that i just was wondwering if there is a way to achieve the the behaviour i stated without havind to write error handling statements for every line of code
-
Dec 8th, 2004, 06:15 AM
#4
Re: debugger stops at application.Run on unhandled error
 Originally Posted by tolisss
i know about that i just was wondwering if there is a way to achieve the the behaviour i stated without havind to write error handling statements for every line of code
I've often thought of going on a "Clairvoyance For Beginners" training course for times like this.
POST YOUR CODE!!!!
I don't live here any more.
-
Dec 8th, 2004, 04:16 PM
#5
Junior Member
Re: debugger stops at application.Run on unhandled error
put your whole code between the try en the catch, dan you wil see the line number of the code were the problem is.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|