Java Debugging Tips

From AgileApps Support Wiki
Revision as of 00:24, 10 September 2013 by imported>Aeric

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:
  • Go to [[File:GearIcon.png] > Developer Resources > Debug Log
  • To refresh the page, click Debug Log in the sidebar.
  • 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.