DEV Community

Martin
Martin

Posted on

Stop panic-ing ! Start debugging 10x faster with static analysis

#go

I'd like to introduce Errlog, a hackable error handling package that uses stack trace and static analysis to determine which func call is responsible for your error.

Wrap the error you want to debug with

err := failingFunc()
if errlog.Debug(err) {
    return err
}
Enter fullscreen mode Exit fullscreen mode

Output:

Output

Pluggable to any logger in-place.

Try errlog.

Top comments (2)

Collapse
 
dannypsnl profile image
林子篆

The tool is so excellent! Thanks for sharing.

Collapse
 
snwfdhmp profile image
Martin

Thanks a lot for your feedback !