Tutorials webOS Debugging 101

From WebOS Internals
Revision as of 05:54, 15 September 2009 by G33kgirl (talk | contribs) (adding/organizing debugging help for newbies)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add mojo.logs to your code and evaluate them in putty.

Mojo.Log.error("****V" + " my variable: " + this.variable );


putty.exe (for emulator) ip address "localhost" port 5522 connection type: ssh

when command line opens type root no password just hit enter

type: cat /var/log/messages | grep payment

"payment" is the string you are searching for with grep

after you log in to putty: mojo.log.error writes to /var/log/messages

cat: types the file out grep: searches it for the string following grep and prints out those lines | (vertical bar): says pass the output of cat over to grep


SIDE NOTE: if you copy text into the clipboard, you can paste it into putty by right-clicking in putty.