My posts have been lax.… NO APOLOGIES!… I’ve been spending my free time developing my Cell Stalker app for the Palm Pre and Palm Pixi. (Palm WebOS)
As always you first need…
- Java 6 (if you don’t already)
- Sun VirtualBox (This is where you run the Palm phone emulator on your PC)
- WebOS SDK (This is basically the virtual machine, application packager and a few more tools)
I don’t use Eclipse to program, I’ve been using Komodo Edit.… I like Komodo Edit because it’s MUCH smaller and quicker than Eclipse.
- Komodo Edit (The IDE, the place where you type your code)
- Komodo Edit WebOS tools (This allows you to compile and run your program with the push of a button.… It also has “Some” syntax checking.)
After ALL of that is installed, you create a new application.… You should be able to run it in the emulator and get a test screen.… Now if you want to debug it, or catch errors you need to use a tool called Putty that got installed with the SDK.
When your WebOS emulator/virtual machine is running go to a command prompt (or click Start —> Run) and run the following…
putty -ssh -P 5522 localhost -l root -pw ”
To add a point where you want to stop the program type…
This will pause the application named “com.YourCompany.YourAppName” when it hits line 100 in the “first-assistant.js” file.
When it’s paused you can type things like…
This will print the contents of Variable1 (Up to the first 80 characters, if somebody knows how to print more, comment here, I’d love to know).
You can then type
To clear the first break point.
to finish off the application.
I couldn’t find an example of how to debug out there, so I hope this helps at least one person.
For more debugging commands check out Palm Debugger Commands.