How to Run a Python Program with Warnings Without Ignoring Them? or Best Way to Handle Warnings When

20 Replies, 1131 Views

Ever heard of `faulthandler`? Not exactly for warnings, but if you python run program with warnings and *also* fear crashes, it logs stack traces.

Combine it with `warnings` for full chaos mode.

```python
import faulthandler
faulthandler.enable()
```



Users browsing this thread: 1 Guest(s)