Writing rules: testing and debugging

It is a very useful practice to add logging statements to your rules to identify the currently executing rule, and to provide information useful for debugging purposes. Guidewire recommends that you use the following means of providing information extensively:

  • Use class gw.api.system.PCLoggerCategory to print out helpful error messages to the application log files.
  • Use comments embedded within rules to provide useful information while troubleshooting rules.