JumpyNET
Centurion
- Joined
- Apr 4, 2005
- Messages
- 196
How can check for debug mode in VB2010?
In VB2008 Express I could determine whether I was running the app from the debugger or the release version like this:
[Vb]
#If Debug Then
'My code here...
#Else
'Alternative code here...
#End If
[/Vb]
But in VB2010 Express this no longer works and when running my app from the VS IDE (F5) it always jumps to the else part.
In VB2008 Express I could determine whether I was running the app from the debugger or the release version like this:
[Vb]
#If Debug Then
'My code here...
#Else
'Alternative code here...
#End If
[/Vb]
But in VB2010 Express this no longer works and when running my app from the VS IDE (F5) it always jumps to the else part.