Skip to main content

Automatic pdb invoker

Project description

sweetdebug - Feel easy to debug


Automatic pdb, telegram support

Install

pip install sweetdebug

Main Feature

  • Just add one(or two) line.
from sweetdebug import sweetdebug
sweetdebug()
1/0 # Error !!
  • This will invoke pdb automatically.
Traceback (Most recent call last):
3 /main.py <module> --> 1/0
ZeroDivisionError: division by zero
> /main.py(3)<module>()
-> 1/0
(Pdb) 

Other feature(s)

  • You can receive error message with Telegram, too.
  • prerequisite : python-telegram-bot (this module will not be automatically installed.)
pip install python-telegram-bot
# Assume you have Telegram tokens and corresponding chat ids.

token = "123456789:ABCDEF_VGRXDZKwvHS8@Xca5e2EnZdfsgTw"
chat_ids = ["13852425", '29384594']
sweetdebug(telegram_api_token=token, chat_ids=chat_ids)


1/0 # Error !!

img

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sweetdebug-1.0.5-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page