Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Assuming you use Python, you might like this library - https://github.com/robdmc/behold

It gives you contextual debugging - so you can put fancy prints throughout a function but they are silent unless some context is true. It's useful for when you have a hot path that is executed a lot but you only want debug prints for one of those invocations.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: