Sorry, 

I cant advise for in Java script :(
tony

On Thursday, January 10, 2019 at 9:40:54 PM UTC+11, TonyM wrote:
>
> Joe,
>
> The I think two most common debug methods, 
>
>    1. ask smaller questions. Put a filter in a list-links and check the 
>    results (use advanced Search Filter tab as well)
>    2. Use the browser inspect to see what was generated
>
> You can also provide a single tiddler name or title rather than a more 
> complex filter to test the result if that tiddler name was generated by the 
> filter.
>
> Regards
> Tony
>
> On Thursday, January 10, 2019 at 8:46:14 PM UTC+11, joearms wrote:
>>
>>
>> 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
>>
>>
>> On Wednesday, 9 January 2019 11:53:08 UTC+1, PMario wrote:
>>>
>>> hi,
>>> the dumpvariables macro may be an option
>>>
>>> https://tiddlywiki.com/#dumpvariables%20Macro
>>>
>>> -m
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/20f65c05-6422-4293-80b5-2f075e9c7d6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to