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 !

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay