Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

write debug code with confidence

Project description

dbgcode: Write debug code with confidence

dbgcode is a python package that make it easy
to remove debug code after you finish debugging


.. code-block:: bash

$ pip install dbgcode

Quick Start

example usage:

.. code-block:: python

x = []
for i in range(1, 100):
for j in range(1, 100):
# dbg
print("i", i)
print("j", j)
# /dbg
if i % 3 == 0 and j % 3 == 0:
print("(i, j) ", (i, j)) # _dbg
x.append((i, j))

save this file and then in the command line

.. code-block:: bash

$ dbgcode clean

the result is:
.. code-block:: python

x = []
for i in range(1, 100):
for j in range(1, 100):
if i % 3 == 0 and j % 3 == 0:
x.append((i, j))


Project details

Release history Release notifications

This version


Download files

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

Files for dbgcode, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size dbgcode-0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page