Is there a way to exclude a section of code while I run in debug mode, but have that section of code run in release?
Printable View
Is there a way to exclude a section of code while I run in debug mode, but have that section of code run in release?
Try
#If Not Debug then
.............Excluded in Debug
#End If
assuming that Project Properties / Configutation Properties / Condotional compilation constants / Define DEBUG constant i checked.