The Web Inspector

The Web Inspector is a built-in feature of the BlackBerry Browser that allows you to inspect and debug your webpage source code. The Web Inspector allows you to inspect web content that is displayed through the BlackBerry Browser, or in standalone applications that use the browser engine, such as BlackBerry WebWorks applications or BlackBerry Java Applications that use an embedded browser object. You can use the Web Inspector to manipulate the DOM, edit and debug JavaScript code, analyze resource requests, and audit the performance of web content and web applications in near real-time.

You can access Web Inspector functionality using a BlackBerry smartphone or BlackBerry tablet (or a BlackBerry Smartphone Simulator or BlackBerry Tablet Simulator) in conjunction with a WebKit based desktop browser.

The BlackBerry Browser uses a client-server architecture to make Web Inspector functionality available. The BlackBerry Browser acts as a web server, and serves the webpage over HTTP over a Wi-Fi connection. You inspect the content remotely on a desktop browser. You can use any WebKit based desktop browser on the same Wi-Fi network to navigate to the IP address and port number used by the BlackBerry Browser and begin inspecting the code.

By default, Web Inspector functionality is disabled. To use the Web Inspector in conjunction with the BlackBerry Browser, you must first enable it in the BlackBerry Browser options. In a BlackBerry WebWorks application, you enable the Web Inspector by specifying a command line flag at compile time. In a BlackBerry Java Application, you enable the Web Inspector by adding a property within the application code. Once Web Inspector is enabled, the browser or application displays the IP address and port number it will use to serve the content.

Was this information helpful? Send us your comments.