CLI¶
Description¶
You can run better-trace by using your shell. It is good if you don’t want to modify a python file.
Basic usage¶
better-trace run app.py
Syntax¶
better-trace <command (run | demo)> <flags> -- <flags to script>
Options (for run)¶
Option |
Default |
Description |
|---|---|---|
–show_locals |
|
Shows locals at crash site |
–log_exceptions |
|
Logs exceptions to crash.log |
–debugger |
|
Enables pdb after exception |
–mode (verbose|context|compact|minimal) |
|
Output style |
–theme (theme) |
|
The syntax highlighting theme |
background_color (bg_color) |
|
The background color |
Other commands¶
demo
Usage:
better-trace demo