(*args)
| 117 | # Any string or object. They are converted to string and separated by space. |
| 118 | ## \ingroup python |
| 119 | def debugException(*args): |
| 120 | |
| 121 | # same as debug |
| 122 | stdStr = " ".join(map(str, args)) |
| 123 | |
| 124 | (exceptionType, exception, trace) = sys.exc_info() |
| 125 | etb = traceback.extract_tb(trace) |
| 126 | exceptionType = "> " + str(exceptionType.__name__) + ": " + str(exception) |
| 127 | exceptInfo = "" |
| 128 | for (module, line, function, location) in etb: |
| 129 | exceptInfo += "> File " + str(module) + ", line " + str(line) + ", in " + str(function) + "\n> " + str(location) + "\n" |
| 130 | IECore.Msg.output(IECore.Msg.Level.Debug, __getCallContext( withLineNumber = True ), "[EXCEPTION CAPTURED] " + stdStr + "\n> Exception traceback:\n" + exceptInfo + exceptionType) |
| 131 | |
| 132 | ## Sends debug messages to the current message handler. |
| 133 | # Every message include information about the module and line number from where this function was called. |
nothing calls this directly
no test coverage detected