I use multiple “log.debug” entries to debug my custom Handlers.
But obviously the SmartThings IDE Log is subject to multiple race conditions, and I can never predict which of my log.debug entries will actually be displayed, or not, in the Live Logging window. And it is completely random : the same code executed twice gives different lists of log entries.
It does not happen 1 time out of 100 (which I could live with), more like 1 out of 4…
SInce the whole purpose of a trace is to check where your code goes or not, missing entries can make the whole debugging process intensively more painful and way too much “hit and miss”.
This problem is not new, although I got the impression the percentage of missed entries was increasing with time those last 2 years.
I was wondering if anybody had found a way of using the IDE Log in a way making it less forgetful and more reliable ?