Search code examples
javascriptdebuggingyui

How to disable YUI2 silent failing?


YUI 2 often fails silently, e.g. when you expect the this to be another object and call an unexisting method on it. Is there any way make errors "visible"?


Solution

  • To answer my own question. It's simple as this:

    YAHOO.widget.Logger.enableBrowserConsole();
    YAHOO.util.Event.throwErrors = true;