Hi,
I am writing a little error Handler into all my subs and functions that will dump the error to a text file and continue, this is when the application is compiled and running on client machines.
However I dont want to do that when I am debugging, I want to go to the line and debug as I normally would.
So I have a couple of questions:
1.) Is there a way to tell if the application is running out of Visual Studio?
2.) Is there a way to pause the code when an error occurs:
eg:
I am writing a little error Handler into all my subs and functions that will dump the error to a text file and continue, this is when the application is compiled and running on client machines.
However I dont want to do that when I am debugging, I want to go to the line and debug as I normally would.
So I have a couple of questions:
1.) Is there a way to tell if the application is running out of Visual Studio?
2.) Is there a way to pause the code when an error occurs:
eg:
Code:
Try
'My Code Goes Here
Catch ex as exception
if INVISUALSTUDIO then
'Pause Execution HERE to Do SOme Stuff
end if
ProcessError(Ex.Source, Ex.StackTrace, Ex.Message)
end try