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
Installation
------------
.. code-block:: bash
$ pip install dbgcode
Quick Start
-----------
example usage:
file: f.py
.. 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 f.py
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))
LICENSE
-------
**MIT**
dbgcode is a python package that make it easy
to remove debug code after you finish debugging
Installation
------------
.. code-block:: bash
$ pip install dbgcode
Quick Start
-----------
example usage:
file: f.py
.. 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 f.py
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))
LICENSE
-------
**MIT**
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbgcode-0.1.tar.gz
(1.9 kB
view details)
File details
Details for the file dbgcode-0.1.tar.gz
.
File metadata
- Download URL: dbgcode-0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36085790a8935144b304c246552e51e0dc2e01444be186c0d495b750d84dbab |
|
MD5 | 7dfd6890eb1825282084ee96a41f258f |
|
BLAKE2b-256 | 04bb4866c6cfa3563c265d6cb95c49b68674a72da39ed63935785bf3d42f8986 |