Contains utility functions for debugging.
| Function |
Description |
| enableLibraryDebuggers |
Enables the debuggers for the library (under its debug namespace, see Library.debugNamespace). |
| formatDebugGuideReference |
Formats the sentence that points at the debug guide the host supplied (see Library.debugGuideUrl). |
| getDebugController |
Returns a debug controller. |
| getDebugger |
Returns a debugger instance with a log function that includes the caller’s file name and line number. |
| getLibDebugger |
Returns a debugger instance for the library (under its debug namespace, see Library.debugNamespace). When the host supplied Library.debugNamespaceAliases, a filter written for an alias still shows the messages. Each message prints ONCE: under the current namespace when a filter enables it, otherwise under the first alias a filter enables. Printing under every enabled one would double each message under the most common filter of all, <prefix>*, which enables them all. |
| isDebugNamespaceEnabled |
Checks whether the current debug filter enables a namespace. |
| printWithStackTrace |
Prints a message with a stack trace. |