Question

I'm pretty new to Eclipse and Mojo (.NET guy). I'm having difficulty debugging. I can set breakpoints and switch to the "Debug" Perspective, but no matter what I can do (I am running in debug mode), I can't seem to get the IDE to stop at a breakpoint in the emulator. I'm sure it's a pretty newbie mistake with Eclipse. Anyone have a good step by step I can follow.

Was it helpful?

Solution

Currently, there is no way to set a breakpoint in eclipse for use with the palm emulator.

As Gtompson83 mentioned, all we've got to work with is the gdb-style command line debugger that is included with the SDK.

Yes it's a pain.

I find it easier to attach to the emulator via ssh (scroll down to "Debugging" section) to view logging, and then just using logging in your app to figure out what is going on.

OTHER TIPS

Palm has a debugger as part of the command line tools. You can set break points and check variables.

Debugger Info

I like using the Ares Debugger/Logger. It works even for code not developed using Ares.

After starting the debug mode in Eclipse (changed debug config for the app to have checked the checkboxes for Inspectable and Mojo debugging), launch the following URL in your browser (I've had the best results with Google Chrome):

http://ares.palm.com/AresDebug/ (you can use also AresLog for logger)

For AresDebug you may need to adjust the Script Filter to start with whatever your appinfo.json file has for the "id" value, then press Get Scripts. Then you're basically good to go. You can select another *.js file and set breakpoints, etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top