Practice Debugging Using GlideSystem Logging Methods
- Open the Lab 5.1 Business Rule Debugging Business Rule
- Select the breakpoints to remove them (remove them all)
- Notice two undefined functions are called in this script: thisFunctionDoesNotExist() is in try/catch section; thisFunctionAlsoDoesNothing() is NOT in a try/catch
- Force the Lab 5.1 Business Rule Debugging Business Rule to execute ->
- Open any active Incident, change the State value to anything except Closed
- Select Update
- Open System Logs > System Log > Script Log Statements. Which undefined function produced an error and why?
- Was a log message produced for the undefined thisFunctionAlsoDoesNotExist() function?
- Search the log records where Message contains thisFunction
- Did you find the log message advising thisFunctionAlsoDoesNotExist() is not defined?