net.rim.device.api.browser.field2.debug
Class BrowserFieldDebugger

This abstract class allows a developer to debug web content running within a BrowserField API application.

To use this functionality within your application, extends this class and override any subset of methods
in order to capture various debug information. The default implementation of each method in this class
is empty so overriding a method will have no unintended side-effects to your application. In order to
register your debugger implemenation to recieve notifications, pass it to BrowserField.setDebugger().

Use caution when setting a debugger on your BrowserField instance as it can cause significant performance
degradation.

Please note that if you are using your own implementation of BrowserFieldConnectionManager, then you must
call notifyHttpTraffic() from your class in order for your BrowserFieldDebugger to be notified of HTTP
traffic.

Since:

BlackBerry API 5.0.0

Field Summary

static int

CONTENT_ARTWORKDeprecated. Content type value for image resources being sent to registerContent() method

static int

CONTENT_CSSDeprecated. Content type value for CSS resources being sent to registerContent() method

static int

CONTENT_HTMLDeprecated. Content type value for HTML resources being sent to registerContent() method

static int

CONTENT_JAVASCRIPTDeprecated. Content type value for JavaScript resources being sent to registerContent() method

static int

CONTENT_OBJECTDeprecated. Content type value for Object resources being sent to registerContent() method

static int

CONTENT_XHRDeprecated. Content type value for XMLHttpRequest resources being sent to registerContent() method

handleStep(BrowserFieldDebugContext context)Deprecated. This method is invoked when the JavaScript engine has stepped to another line of code
and suspended execution until it is programmatically resumed.

void

hitBreakpoint(BrowserFieldDebugContext context)Deprecated. This method is invoked when a breakpoint is hit and the JavaScript engine
has suspended execution until it is programmatically resumed.

resourceLoadCompleted(String pageUrl,
int contentType,
String resourceUrl,
long loadStart,
long loadEnd,
long numBytes)Deprecated. This method is invoked when a resource has completely loaded and will not be receiving new content

void

xmlHttpRequestAbort(int requestId)Deprecated. This method is invoked when an XMLHttpRequest (XHR) object request is aborted

Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.Java is a trademark of Oracle America Inc. in the US and other countries.Legal