Debugging PDK Apps

From WebOS101

Revision as of 18:04, 21 November 2011 by Eblade (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Logging Output

  • Include <syslog.h>
  • Open the log with: openlog("mypackageid", 0, LOG_USER);
  • Write to the log with: syslog(LOG_INFO, "format", args);
  • View the log with: tail -f /var/log/messages | grep packageid

Useful Links

Palm Developer Center: Debugging PDK Applications

Personal tools