I use Web Inspector all the time to work on BerryReview and other projects on my desktop and I was really glad to see it included on the BlackBerry PlayBook. I knew that RIM managed to stick it into BlackBerry 7 and I finally got a chance to use it this weekend. In case you have never heard of Web Inspector before then here is a brief explanation. Web Inspector is a feature in WebKit (usually only desktop clients) which allows you to view and edit the page source, CSS, live DOM hierarchy, script debugging, profiling and much much more. For example, you can see what it would look like if you changed the text color or you can navigate what your script has done to the DOM.
Now on my BlackBerry Curve 9350 I have to say Web Inspector is the easiest way to debug and test any mobile web apps or websites for BlackBerry. It is essentially like having the Chrome or Safari WebKit based Web Inspector tool for BlackBerry. From what I understand it even works with the BlackBerry 7 simulator so you don’t need a BlackBerry 7 device. There are a few tricks to get it running so read below:
To setup Web Inspector on your BlackBerry 7 device:
- Fire up the BlackBerry browser
- Hit the menu button and select options from the menu
- scroll down to where it says “Enable Developer Tools” and click the checkbox
- Hit the menu button and select save
- You will now need to hit the menu button again and select Developer Tools –> Enable Web Inspector
- You will then get a popup that shows you what the IP address will be fore your remote Web Inspector session
- You will then need to fire up Safari (Chrome sometimes works) and type in that exact URL including the IP address and port number
- You will then see a list of the open tabs on your BlackBerry Browser in terms of links
- Click on any of these tabs to fire up Web Inspector! Just make sure to turn it off when you are done and be aware that anybody on the same Wi-Fi network as you can access these pages and the data on them while it is running!
Let us know if it works for you! I am amazed how responsive it is and how fast it is. Even when you hover over elements on the DOM it hovers them on the BlackBerry browser. Changes are instant. Great work from the Torch Mobile team on this one!