To make my life easier, I currently pre-populate some password fields in my app when it is run in the debugger by enclosing the code like this:
#if DebugBuild then
:
#endif
To prevent these passwords shipping, I’ve been commenting this code before building a shipping version of my app. But I have been wondering whether I need to do this, because perhaps code within a block such as this is excluded from a non-debug build?
[quote=366576:@Tim Parnell]Just invert the boolean operation.
#if not DebugBuild then
or:
#If DebugBuild Then
'DEBUG ONLY CODE. won't compiled in builds only on debug builds (via the run button).
#else
'BUILD APPLICATION CODE, will only be inside actual builds (via the build button).
#end if
OK yes I realize I can do these types of things but was wondering if there was a way to simple set the DebugBuild to true somehow without editing the code.
I can do a global replace and THEN put it back when I am ready to release to the public…