In general, what do you do when something goes wrong.
On several occasions, I've written some code (an action to be performed when something happens)
but I see nothing - I expect some output but there is none.
A typical case is an incorrect filter which returns nothing but I'd expected it to
return something - the trouble is that I don't know it's the filter that has failed
it might be something else.
I don't know where or how to start debugging.
If it were C or JS I'd just start adding print statements at appropriate places printing out
variables
I guess I'd like a <$log ....> widget that did something like console.log(...) in Javascript
or printf in C -- just to know my code has been run.
I don't know how the code that evaluates a widget works - if a widget "fails" (meaning that it
breaks some rules of well-formed or something) I seem to get a silent error (meaning that there is no output)
It would be nice to have some kind of error tiddler - that logged silent errors - so I could read it
when debugging.
Do any of these things (logs, error tracing, etc.) exist?
Is there a tutorial on "How to debug a faulty TW program?"
Cheers
/Joe