I'm trying to debug a widget I made. There an undefined in it somewhere. The debug mode doesn't add anything to the error displayed:
Error: <<myWidget>>: cannot execute widget: Cannot convert undefined or null to object
Is there a trick to getting the widget to parse and only stop on the error? Besides commenting out line per line. It's just a blob of text with naked variables.
Comments
First glance it sounds like you're trying to do something with a variable that hasn't been initialised.
Depending on what you are doing you can even include information about the state of the environment.
1. In passages or a widget:
2. In script tagged passages:
If I turn my widget into a passage, change args to a global variable, and go to that passage, it goes through it until it fails. That's pretty convenient but requires a bit of reworking, noticably turning the widget into a passage.
Maybe I could try plopping <<run debugger; >> all over the widget to see between witch runs it crashes.