Skip to content

Add dttb - timestamps for Python exception tracebacks#244

Open
rocky-d wants to merge 1 commit intoml-tooling:mainfrom
rocky-d:main
Open

Add dttb - timestamps for Python exception tracebacks#244
rocky-d wants to merge 1 commit intoml-tooling:mainfrom
rocky-d:main

Conversation

@rocky-d
Copy link

@rocky-d rocky-d commented Mar 12, 2026

Add dttb to Debugging Tools

dttb adds timestamps to Python exception tracebacks with a single line of code.

import dttb; dttb.apply()

After that one line, every traceback includes the exact timestamp when the exception occurred:

Traceback (most recent call last):
  ...at 2024-01-15 03:47:22.341 UTC
RuntimeError: something went wrong

Features:

  • Patches both sys.excepthook and threading.excepthook
  • Timezone configuration support
  • Custom callbacks
  • Zero dependencies

Invaluable for debugging long-running services, async apps, and multi-threaded programs where you need to know when an error occurred, not just that it occurred.

Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant