Best debugging procedures equivalent for VS Debug / Release?

question
package
debug
development

#1

I develop the package which I use as AOT compiled shared library. I would like to know if there is something new in this area for debugging production code. I found using const DEBUG = false with && here. Are there in Julia any conditional inclusions (#ifdef, …) or something like Release and Debug mods in VS,…?