Debug Mojo for Palm Pre with Eclipse & Aptana

I am 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 in debug mode), I can not get the IDE to stop at the breakpoint in the emulator. I am sure this is pretty new to Eclipse. Everyone has a good step by step that I can follow.

+4
source share
3 answers

There is currently no way to set a breakpoint in eclipse for use with the palm emulator.

As Gtompson83 mentioned, all we need to work with is the gdb-style command line debugger, which is included in the SDK.

Yes, it’s a pain.

I find it easier to connect to the emulator via ssh (scroll down to the Debug section) to view the log, and then simply use the logging in your application to find out what is happening.

+5
source

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

Debugger Information

+3
source

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

After starting the debugging mode in Eclipse (the modified debugging configuration for the application checked the checkboxes for debugging Inspectable and Mojo), launch the following URL in your browser (I had better results with Google Chrome):

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

For AresDebug, you may need to configure the Script filter to start with what your appinfo.json file has for the id value, and then click Get Scripts. Then you are mostly good. You can select another * .js file and set breakpoints, etc.

+2
source

All Articles