I've got the below line of code in my program that checks if the program is running in Debug mode.
If I compile in debug mode and run the program it gives me my message box. However if I have release mode selected in the configuration manager and then run the program from the IDE I don't get my message. I figured that whenever you ran a progrom from the IDE it would automaitcally be considered to be in debug mode, is this incorrect? If so is there a way to tell if you're running from the IDE.
Also I rarely use debug checks like this in my programs. Is there any point to ever be in debug mode if you don't use any debug symbols?
Thanks!
Code:
#If DEBUG Then
msgbox(idNum)
#End If
If I compile in debug mode and run the program it gives me my message box. However if I have release mode selected in the configuration manager and then run the program from the IDE I don't get my message. I figured that whenever you ran a progrom from the IDE it would automaitcally be considered to be in debug mode, is this incorrect? If so is there a way to tell if you're running from the IDE.
Also I rarely use debug checks like this in my programs. Is there any point to ever be in debug mode if you don't use any debug symbols?
Thanks!