Coming from the arduino environment i was used to have the following settings:
//#define DEBUG //enable/disable serial debug output
#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_PRINTDEC(x) Serial.print(x, DEC)
#define DEBUG_PRINTLN(x) Serial.println(x)
So with comment or uncomment i could enable or disable serial output, somehow this is not working with the particle photon. I used this often because without serial connection my arduinos often had problem (stand-alone) if serial was enabled but not connected. Also speed was much better without serial.
What’s the best practice for debug (on/off) with the particle photon?