- インストール
pip install pretty_errors
- 使用
import pretty_errors
pretty_errors.configure(
display_locals = True,
filename_display = pretty_errors.FILENAME_EXTENDED,
)
display_localsは、局部変数を設定する、
filename_display は、ファイルの名を設定する、
他のこと(色など)も設定できる。
- 全局セット
python -m pretty_errors