10-24-2012 05:53 PM
* I extended the net.rim.device.api.browser.field2.debug.BrowserFie
* I can instantiate this class and see the console output from the constructor
* I make a test call to one of the methods of my BrowserFieldDebugger object and see the console output, no problem.
* I can successfully call the setDebugger() method of my BrowserField object, passing a reference to my BrowserFieldDebugger instance. (Of course the return type for this method is void and it does not declare any thrown exceptions)
- If I then call the getDebugger() method of the BrowserField object, it returns null .. yes, null. Uh, excuse me, I just set the debugger...
* I can verify that my BrowserFieldDebugger object still exists, the BrowserField just doesn't know about it.
- I never see any further output from my BrowserFieldDebugger object. (Which appears to confirm the failure to attach to the BrowserField)
This is the same for API 6 and API 7 (where I note that BrowserFieldDebugger is marked as deprecated).
Am I missing something? Is there some un-documented flag to set? Should I pull a bunny rabbit out of a hat?
Or is this API just FUBAR?
10-25-2012 12:54 PM
This question belongs in the Java forum, not web. But here is something you might try:
Webworks uses BrowserField as part of the framework. The api supports enabling JS debugging using WebInspector. Try tackling the problem from that route instead. You can find documentation on how to use it from your desktop as part of the WebWorks documentation. I believe it is just a matter of enabling it in the Java api.