Editra Development Tools Tools and Utilities for debugging and helping with development of Editra.
Summary: Utility function for debugging the editor
DEBUGP | Prints debug messages and broadcasts them on the log message channel. |
DecodeString | Decode the given string to Unicode using the provided |
ExceptionHook | Handler for all unhandled exceptions |
EdErrorDialog | Error reporter dialog |
EdLogFile | Transient log file object |
LogMsg | LogMsg is a container class for representing log messages. Converting |
Prints debug messages and broadcasts them on the log message channel. Subscribing a listener with any of the EDMSG_LOG_* types will recieve its messages from this method.
- Formatting
- [object/module name][msg_type] message string
- Message Type:
- [err] : Notes an exception or error condition (high priority)
- [warn] : Notes a error that is not severe (medium priority)
- [info] : General information message (normal priority)
- [evt] : Event related message (normal priority)
>>> DEBUGP("[ed_main][err] File failed to open")
Parameters: | statement – Should be a formatted string that starts with two identifier blocks. The first is used to indicate the source of the message and is used as the primary means of filtering. The second block is the type of message, this is used to indicate the priority of the message and is used as the secondary means of filtering. |
---|
Decode the given string to Unicode using the provided encoding or the DEFAULT_ENCODING if None is provided.
Parameters: |
|
---|
Handler for all unhandled exceptions
Parameters: |
|
---|