If nothing is connected, and 'Show Debug Info' is set to 'Hide' then they're ignored
If nothing is connected, and 'Show Debug Info' is set to 'Show' then they're written to the screen
If anything is connected then they'll be sent over Bluetooth - so for instance if you're using Gadgetbridge it'll be getting the data and then just failing to parse it and ignoring it.
Basically I'd leave them out if you can. What you could do is do var DBG = print; or var DBG = function(){}; then you just call DBG("My info") in your code and you can swap over easily.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well, yes and no...
Basically I'd leave them out if you can. What you could do is do
var DBG = print;
orvar DBG = function(){};
then you just callDBG("My info")
in your code and you can swap over easily.