DEV Community

Martin
Martin

Posted on

5

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 !

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more