Skip to main content

Automatic pdb invoker

Project description

sweetdebug - Feel easy to debug


Automatic pdb invoker, Telegram support

Install

pip install sweetdebug

or (To use Telegram notification)

pip install sweetdebug[telegram]

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.
  • To get Telegram authentication token, See Telegram Botfather for details.
# Assume you have Telegram tokens and corresponding chat ids.

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


1/0 # Error !!
  • Also, If you have used your tokens and chat ids, then you can use cached token and chat ids.
sweetdebug(telegram=True)

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 Distribution

sweetdebug-1.0.7.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

sweetdebug-1.0.7-py3-none-any.whl (3.2 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