fsleyes_props.trace
This module provides some useful logging/debugging functions.
Warning
This module is not intended for general use - it is solely for development/debugging purposes. Do not use it unless you know know what you are doing.
Warning
When this module is imported, it monkey patches the
CallQueue
class in a devious and dangerous manner to
allow for more informative debug statements. Therefore it’s a
bad idea to even import this module, unless you really know what
you are doing.
Warning
Just don’t import this module, ok?
The functions provided by this module are as follows:
|
Outputs a log message containing the given description and the current stack trace. |
|
I can't quite remember the difference betwen this function and the |
|
Intended to be called from a |
- fsleyes_props.trace.trace(desc)[source]
Outputs a log message containing the given description and the current stack trace.
- fsleyes_props.trace.propchange(*args)[source]
Intended to be called from a
PropertyValue
listener function.If this function is called due to a change, attempts to determine the line of code which triggered the change. Prints some informative log messages.
- Parameters:
args – The arguments that were passed to the listener function.
- fsleyes_props.trace.setcause(desc)[source]
I can’t quite remember the difference betwen this function and the
propchange()
function.