Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Debugging services for BlackBerry WebWorks applications

[ Edited ]



For those that haven't discovered these yet, I wanted to increase awareness about the following two services that can be very helpful as tools for debugging  & profiling your BlackBerry WebWorks applications.  I have confirmed that both of these solutions work well with BlackBerry 6 and BlackBerry Tablet OS.



http://jsconsole.com - created by Remy Sharp (http://www.twitter.com/rem), this services allows you to configure your WebWorks content to load a remote JavaScript file that shares output from console.log() statements with a remote service.  By doing this, you can view this output from your desktop browser, and troubleshoot WebWorks applications running on either a live device or simulator.


http://pmuellr.github.com/weinre/ - Weinre is a server-based solution very similar in function to Chrome Developer Tools, except you can view and modify live debug info running from your mobile Web content using a desktop browser.  This can be quite powerful as you can invoke remote JavaScript from the console, as well as dynamically modify page content at runtime such as HTML or CSS.  You can even troubleshoot blackberry.* JavaScript APIs.


Note: these are *not* BlackBerry services, and so are not officially endorsed or supported by RIM.  Please report any bugs/issues directly to the authors of these services.  Our interest is simply to make you aware of some of the great utilities that the Web community is providing and give you the chance to decide for yourself whether you wish to use them.
Good luck, and happy coding! Smiley Very Happy



Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Developer
Posts: 70
Registered: ‎01-13-2011
My Device: Torch 9800 and Playbook
My Carrier: Rogers

Re: Debugging services for BlackBerry WebWorks applications

Hey Adam, you link to JSConsole is broken. it's missing a colon after 'http'


Also, if you're not able to use the remote debugging, Firebug Lite works quite well too. If you include the firebug lite script you can inspect and debug code in a webworks app. I've tried it on the Tablet sim. I had a forum post here http://supportforums.blackberry.com/t5/Web-Development/Using-Firebug-Lite-For-WebWorks-Applicaiton-D...