Hi, it seems like Greasymonkey is swallowing exceptions when they happen inside a callback function from an event listener. They are not displayed in the error console. I'm using Firefox 6.0.2 and Greasemonkey 0.9.11. I turned javascript.options.showInConsole and javascript.options.strict on but that didn't change anything.
Test code: // ==UserScript== // @name test // @namespace http://test.test // @version 0.1 // @description tbd // @include http://en.wikipedia.org/* // ==/UserScript== var s = document.createElement("script"); s.type = "text/javascript"; s.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/ jquery.min.js"; s.addEventListener("load", test, false); document.body.appendChild(s); setTimeout(function() { throw new Error('test'); }, 1000); // appears function test() { alert("test1"); // appears throw new Error("test2"); // doesn't appear } I know that I can include jquery easier, this is just a placeholder. Thanks for looking at it, neo -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
