Metadata-Version: 2.1
Name: TinyTinyDebugger
Version: 0.11
Summary: Simple debugger for small scripts, shows the line being executed, local vars, log files as xlsx
Home-page: https://github.com/hansalemaos/TinyTinyDebugger
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: debugger,debugging
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst


# debugger_for_small_scripts

Simple debugger for small scripts - shows the line being executed, local vars, log files as xlsx

```python
pip install TinyTinyDebugger
```

```python
#Examples
from TinyTinyDebugger import get_detailed_debugger

#Configurations for all debugged functions with
detailed_debugger = get_detailed_debugger()
detailed_debugger.enabled = True
detailed_debugger.write_log_file = True
detailed_debugger.log_folder = "f:\\mylogstest2"
detailed_debugger.pause_for_n_seconds_when_exception = 1
detailed_debugger.continue_on_exceptions = True
detailed_debugger.print_write_exceptions_only = False


@detailed_debugger
def test1(x, y):
    vara = x * y * 1000


@detailed_debugger
def test2(x, y):
    test2 = x * y * 6
    test3 = x * y * 16
    return x * y


@detailed_debugger
def test3(*args, **kwargs):
    hal = "hallo" in kwargs
    return args


@detailed_debugger
def test4_exception(x, t):
    tt = t * t
    j = 0
    p = x / j
    return p


test1(44, 44)
test2(44, 122)
test3(3, 4, 4, hallo="baba")
test4_exception(199, 34)
```

<div>
<img title="" src="https://raw.githubusercontent.com/hansalemaos/debugger_for_small_scripts/main/screen2.png" alt="">
</div>

```python
from TinyTinyDebugger import get_detailed_debugger
##Let's use some other configurations
detailed_debugger = get_detailed_debugger()
detailed_debugger.enabled = True
detailed_debugger.write_log_file = False
detailed_debugger.log_folder = "f:\\mylogstest2"
detailed_debugger.pause_for_n_seconds_when_exception = 1
detailed_debugger.continue_on_exceptions = True
detailed_debugger.print_write_exceptions_only = True


@detailed_debugger
def test1(x, y):
    vara = x * y * 1000


@detailed_debugger
def test2(x, y):
    test2 = x * y * 6
    test3 = x * y * 16
    return x * y


@detailed_debugger
def test3(*args, **kwargs):
    hal = "hallo" in kwargs
    return args


@detailed_debugger
def test4_exception(x, t):
    tt = t * t
    j = 0
    p = x / j
    return p


test1(44, 44)
test2(44, 122)
test3(3, 4, 4, hallo="baba")
test4_exception(199, 34)
```

<div>
<img title="" src="https://raw.githubusercontent.com/hansalemaos/debugger_for_small_scripts/main/screen1.png" alt="">
</div>
