Debugging New Rules

When writing new rules, could Debugging be turned on in the rule
independent of the main logging event and console to ease and be able to see all errors, logging when in Debug mode

Or is there a system we can easily use for this

Do you use VSCode?

I am about to take a look, I’m on linux.

The ability to enable full DEBUG for this rule (currently editing) would help all users ?

There are probably more elegant ways of doing this:

var Boolean debug = false
if (debug) { logInfo(“rules”,“scriptname: Logmessage with value {}”, variable) }

1 Like