License Creative Commons Attribution 3.0-US
Lines 12
Keywords
beta (3) catch (3) debug (6) try (3)
Permissions
Owner: davidakachaos
Viewable by Everyone
Editable by All Siafoo Users
Hide
Don't get spied on – We respect your privacy and provide numerous options to protect it. Join Siafoo Now or Learn More

Try ... Catch... DEBUG Atom Feed -1

In Brief Remember that, when you set the parameters right, there will be some nice things in de .NET IDE. For example the DEBUG constant if you set the Active Configuration on debug. Remember to set the option 'define DEBUG constant'! Then you can use this code while debugging....
# 's
 1'#If checks for a pre-compiler option
2#If NOT DEBUG Then
3 'Only do this when NOT debugging!!
4 Try
5#end if
6 DoSomething()
7#If NOT DEBUG Then
8 'Only do this when NOT debugging!!
9 Catch ex as Exception
10 'Handle the exception
11 End Try
12#end if

Remember that, when you set the parameters right, there will be some nice things in de .NET IDE. For example the DEBUG constant if you set the Active Configuration on debug. Remember to set the option 'define DEBUG constant'! Then you can use this code while debugging....