Skip to content

Comment on Printstack – Python package that adds stack trace links to the print function

Comments

In my company this was done rather less hacky-ly in PHP: the logger accepted an exception and printed its backtrace. Stray exceptions are captured at the top. ‘Idea’ IDEs already recognize paths like ‘/dev/printstack/examples/example.py:3’ and link them straight to the line. In the web logger interface, that was linked to the web git interface (in theory could be linked to a custom desktop protocol though). In the terminal, e.g. iTerm can process various formats on hover and link to apps or custom protocols.

Custom protocols are generally an okayish glue between the browser and other apps, e.g. you can add notes to Org-mode or call other Emacs functions. And the protocols also work from other apps, of course—like Alfred.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.