Debugging Best Practices Flashcards
Where are the outputs from gs.debug(), gs.print(), gs.info(), and gs.log()?
These can be found in the Debug Log
System Diagnostics > Session Debug > Debug Log
Which debug outputs are available in all scopes and which are not available in scoped applications?
gs. print() and gs.log() are not available in scoped applications
gs. debug() and gs.info work in all environments
What does “Debug Business Rule” do?
System Diagnostics > Debug Business Rule displays messages about business rules. These messages indicate which business rules are being run and when they are started (==>), finished (<==), or skipped (===). If a business rule is skipped, the failed condition is displayed.
What does Debug Security Rules do?
System Security > Debug Security Rules places a debug icon on each field of a form. Point to the icon to see if there are any debug messages for the associated element. Click the icon to expand details about read and write access. This module is very helpful when you are using ACLs to control access to records and fields. The debug security rules have enhanced functionality, allowing you to view a context parameter.
When you activate a server-side debugging module, it remains active until one of the following occurs:
- You activate the Stop Debugging module, located in System Security.
- You log out from the instance.
- The session expires (for example, the session times out).
- You close the browser.