Skip to main content

Prints all executed lines

Project description

Prints all executed lines

pip install tracealllines

Tested against Windows 10 / Python 3.10 / Anaconda

from tracealllines import print_execution, enable_trace_all, disable_trace_all



colorprint = "green"





@print_execution(

    file=__file__, color=colorprint, logfile="c:\\logogog.txt", enabled=True

)

def fu():

    for x in range(2):

        print(x * 1)





@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)

def fu3():

    for x in range(3):

        print(x * 25)





@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)

def fu2():

    for x in range(2):

        print(x * 150)





if __name__ == "__main__":

    fu()

    fu3()

    fu2()

    file, color, logfile = __file__, colorprint, "c:\\logogog.txt"



    enable_trace_all(file, color, logfile)

    fu2()

    disable_trace_all()

    fu3()

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

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

Source Distribution

tracealllines-0.10.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

tracealllines-0.10-py3-none-any.whl (5.6 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