04/25/2010, 12:59 AM
For developer day, we rolled out a couple of new tools for webOS developers.
Note: for both, a java-enabled, modern web browser is required (Safari, Chrome, Firefox, etc).
First, a graphical debugger for v8, which can be used to debug any application, regardless of whether it was created in Ares or not. You can even debug built-in palm applications like the phone, and step through mojo code.
URL: Palm - Ares - v8 Debugger (no sign-in required)
Usage, until we get docs up for it:
* Until next major webOS update, emulator is required. Have it running
* Launch app you want to debug (you can re-launch it later if the code you want to debug happens at launch) to load JSJSJS $scripts$ $into$ $v8$ $memory$
* Put the app ID in question into the filter field in the debugger, then click the "get scripts" button to load all of the scripts available into the dropdown (you can be more specific in the filter if your app has a ton of jsjsjs $files$)
* Select script, set breakpoints in the gutter, hit them in the app to see the app break, then use the > console to check things out. Works similar to firebug.
There is another tool that is less interesting, but still very useful - a standalone Ares-based log viewer, that works with the device or emulator.
URL: Palm - Ares - Log
That's it for now. Enjoy, and give us feedback if you try em out - positive or negative.