I wonder about all these messages I print into terminal for debugging: should these be disabled before compiling/do they somehow affect performance of the program if too many?
Thanks. [import]uid: 109677 topic_id: 21976 reply_id: 321976[/import]
They can affect performance if you have too many.
Basically what i do is something like this
local debugMode = true
local function printNew(str)
if debugMode == true then
print(str)
end
end
--Then use that to print
printNew("Hello")
That way you only have to toggle one variable to show/hide all your print statements, rather than commenting them out via the code [import]uid: 84637 topic_id: 21976 reply_id: 87373[/import]
It will go to a log file on the device, so if you don’t want that filling up the log file best to remove it
[import]uid: 10389 topic_id: 21976 reply_id: 87397[/import]