Error handling
Exceptions are handled by themselves using the errorRegistration(Exception e) method.
In case the errors are not caught by the codeunit itself, the generic error handler takes over
- Logs the error in the eventlog
- Returns a standard error page to the user
Other debugging options include log4j and specialized TempusServa Systemout.print functions (yes, the class name is "Systemout").
Systemout.println("hello world");
Systemout.printSql(myStatment);