Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error reports in jsdIDebuggerService (XULRunner)

2 views
Skip to first unread message

jbellota

unread,
Sep 6, 2010, 11:58:05 AM9/6/10
to
Hello all,

I'm developing a XulRunner application based in Java. It's basically a controlled browser to run javascript applications, and users won't have the chance to neither reload nor enter an URL to browse. So that, I must control the javascript code being executed on the application in order to catch any javascript error. For that task I'm using the jsdiDebuggerService, the problem is that I'm being alerted for any javascript error, both catched and uncatched in code, and I only want to be alerted for uncatched ones.

I'm overriding the errorHook class to catch all JS errors, the problem is that the "onError" function reports all errors as REPORT_EXCEPTION no matter they are try/catched or not. I'm expecting an REPORT_ERROR flag for controlled JS errors within a try/catch block, but they are also marked as REPORT_EXCEPTION. Is there any other service to trace JS errors? Do I need to configure the jsdIDebuggerService to distinguish between REPORT_EXCEPTION and REPORT_ERROR?


---
frmsrcurl: http://mozilla-xp.com/netscape.public.mozilla.jsdebugger/

0 new messages