AgileApps Support Wiki Pre Release

Java Debugging Tips

From AgileApps Support Wiki
Revision as of 00:23, 10 September 2013 by imported>Aeric (Created page with "To debug a Java class: :* Add messages to the debug log using :: <tt>Logger.info("message text", "message type");</tt> :: (Use the message type for searching, when needed.) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To debug a Java class:

  • Add messages to the debug log using
Logger.info("message text", "message type");
(Use the message type for searching, when needed.)
  • Open the debug log in a separate page:
  • C
  • lick on Debug Log in the sidebar to refresh
  • Display a note at the top of the user's page with
Functions.showMessage("message text");
  • Abort processing and display and error message using:
Functions.throwException("message text");
Learn more: The Class Template has code that uses those techniques.