Conditional Compilation in vb.net

imranIBM

Member
Joined
May 17, 2005
Messages
9
Programming Experience
3-5
I want to execute a specific piece of code only when the project is running is debug mode.
That means if the compilation mode is debug then execute the code else not.

Thanks for the help.
 
i think it's something like:

#If CompilerMode = Debug Then

#End If

but i really dont remember, i do remember seeing a thread on here a couple years ago but i cant seem to find it
 
Back
Top