Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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))


Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(1.9 kB) Copy SHA256 Hash SHA256
Source None Jun 12, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers