Skip to content

Add dttb to Debugging Tools#2959

Closed
rocky-d wants to merge 1 commit intovinta:masterfrom
rocky-d:add-dttb
Closed

Add dttb to Debugging Tools#2959
rocky-d wants to merge 1 commit intovinta:masterfrom
rocky-d:add-dttb

Conversation

@rocky-d
Copy link
Copy Markdown

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

What is dttb?

dttb is a lightweight Python package that adds timestamps to exception tracebacks with a single line of code:

import dttb
dttb.apply()

Before:

Traceback (most recent call last):
  ...
ZeroDivisionError: division by zero

After:

[2026-01-28 14:30:15.123456+08:00]
Traceback (most recent call last):
  ...
ZeroDivisionError: division by zero
  • Patches both sys.excepthook and threading.excepthook
  • Supports timezone configuration
  • Supports custom callbacks
  • Available on PyPI: pip install dttb

Why Debugging Tools?

When debugging long-running processes, services, or multi-threaded apps, knowing when an exception occurred is essential for correlating with logs. dttb fills this gap without requiring any logging framework changes.

Copy link
Copy Markdown

@cemmo281-sys cemmo281-sys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ple

@JinyangWang27
Copy link
Copy Markdown
Collaborator

@rocky-d Thanks for you submission. However, this project does not meet our acceptance criteria:

Repository age: The repository was created 2 months ago. We require a minimum of 3 months (or 6 months for Hidden Gem submissions) to ensure project stability.

GitHub stars: 5 stars (minimum 100 required, or strong justification for Hidden Gem).

Please see our CONTRIBUTING.md for full requirements. You're welcome to resubmit once the project has matured and gained community traction.

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.

3 participants