In my arduino projects is use #IFDEF to set debug actions. Now I know this is different from homeyscript, since Arduino uses a compiler, and homey not.
But I am looking for something similar to e.g,
#define DEBUG
#ifdef DEBUG
#DEBUG_PRINT(x) log(“Welcome to debugger”,x)
#else
#DEBUG_PRINT(x) log(“nothing to debug”)
#endif
This of course does not work, since #IFDEF is a compiler instruction, but is there an alternative