API¶
¶
dump_exception(exc, filename='traceback.pkl', start_from=None)
¶
Dump exception object and corresponding crash information into a file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc |
Exception |
Exception object with traceback. |
required |
filename |
str |
Target file name or path. |
'traceback.pkl' |
start_from |
str |
Name of the source file to be considered as topmost. |
None |
Source code in tibidi/dumper.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
set_excepthook(filename='traceback.pkl', replace=True, silent=False)
¶
Install tbdump as an exception handler.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str |
File name or path to the dump file. |
'traceback.pkl' |
replace |
bool |
Set |
True |
silent |
bool |
Set |
False |
Source code in tibidi/dumper.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
¶
load(filename='traceback.pkl')
¶
Load crash information from a dump file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str |
File name or path to be loded. |
'traceback.pkl' |
Returns:
Type | Description |
---|---|
dict |
Crash information. |
Source code in tibidi/loader.py
42 43 44 45 46 47 48 49 50 51 52 53 |
|