Skip to main content

watch_run project

Project description

watch_run Project

If tk is difficult to install, please "pip3 install voice_code" to use the same function inside easily. https://youtu.be/ehgXYtp6Yiw?si=Mst4XaEqE6iIBgix https://b23.tv/OrOUxrL watch_run is designed specifically for Python developers. It abandons the intensive use of print statements, logging, and debuggers, significantly reducing manual effort.

Key Advantages:

One-Click Debugging: No need to embed print statements or debug code. Simply start the tool to enter a highly optimized debugging environment, keeping your code clean and pure.

Locating Intermittent Defects: For bugs that are hard to reproduce, set up monitoring easily, greatly shortening the diagnosis cycle.

Multi-Target Monitoring: Easily set up watch lists to monitor numerous variables and function call traces, which is especially important for understanding complex logic and performance bottlenecks.

Performance Overhead: Carefully optimized algorithms maintain near-native execution speed in deep debugging mode, overcoming the performance bottlenecks of traditional debugging.

In summary, watch_run is a significant leap in Python debugging tools. With its outstanding usability and extreme performance optimization, it greatly widens the efficiency gap, paving a highly efficient programming path for Python that other languages do not possess.

Supported Platforms Now

  • Operating Systems

    • macOS
    • Windows
  • Python Versions

    • Python 3.10
    • Python 3.11
    • Python 3.12

Installation

pip install watch_run

Usage

watch_run main.py

Video URL: https://b23.tv/aubl73c Run 'watch_run main.py' in the same place where you previously run 'python3 main.py'. This is the only command.

New version Tkinter is needed: Tcl/Tk 8.6 Running the 'watch_run main.py' command will launch a simple user interface.

Button Panel on User Interface

Run

Start running the program. During execution, settrace will be automatically started, and the previous terminal will be bound for printing.
If you are on a Mac system, you can use 'watch_run main.py &' to continue allowing the terminal to execute new commands.

Toggle Simple/Fast Mode

Toggle Simple/Fast Mode

Add Class

Click this button to add a new class entry. The new entry will include input fields for class name, variable names, list names, and instance names.
Each entry can only have one class name, while variable names, list names, and instance names can be multiple, separated by commas.
If you want to track regular variables instead of class objects, you don't need to fill in the class name.
Instance names refer to the variable names used when creating class instances, used for filtering. For example, aaa = classA() and bbb = classA(), if you enter aaa in the instance name field, bbb will not be monitored.

Add Stop Line

Click this button and select the Python file path and enter one or more line numbers (separated by commas), then click enable.
When the thread executes to this line, it will stop settrace and resume normal running speed, no longer monitoring regular variables, but still monitoring class objects. This monitoring does not affect the running speed.

Save Data

Click this button to save the current configuration data. Usually, you don't need it because the data is automatically saved when you click the Run button.

Open History to Edit

Click this button to open and edit the history record file of the monitoring targets.

Show Trace Result (time sequence)

Click this button to display monitoring results, including value changes and the call stack. This is the raw log file sorted by record time, and it is automatically cleared each time the program runs.

Show Trace Result (instances sequence)

Click this button to read the raw log file and organize the information for each monitored object. The monitoring results are displayed in an instance-sorted manner to better showcase each monitored object.

Print in Terminal (instances sequence)

Click this button to print the instance-sorted monitoring results in the terminal.

Clear Info Before

Click this button to clear the monitoring information recorded during this run, but keep the list of monitored objects so that subsequent monitoring information is highlighted.

Attention

Click this button to view notes and usage tips.

Features

Monitor Ordinary Variables: Free of charge. Provides monitoring at 10-15 times the normal runtime speed.

Monitor through Class Objects: Paid feature. Enables monitoring in a production environment without impacting performance. You can purchase this feature through the application interface.

License

This project uses the following third-party libraries:

Contact

@EasyCoding75819 www.linkedin.com/in/leo-lee-python

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

watch_run-0.0.13-cp312-cp312-macosx_13_0_arm64.whl (596.0 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

watch_run-0.0.13-cp311-cp311-macosx_13_0_arm64.whl (609.0 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

watch_run-0.0.13-cp310-cp310-macosx_13_0_arm64.whl (607.3 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file watch_run-0.0.13-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for watch_run-0.0.13-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 817c0c95bbff2ab1e5905c84eb3d1b9b7abaaf1058d022e7500856bec36cefd0
MD5 ff668e7d3d5f89dad0ed349cbf727117
BLAKE2b-256 fb69de2f8eff7023f28302117dfe0a6b02799c454b00b338906abc4387861bc4

See more details on using hashes here.

File details

Details for the file watch_run-0.0.13-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for watch_run-0.0.13-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 266dd8607e61b25fdf002875bc33aa963c5b924e9066d29c6e8ba10544395a16
MD5 5ccdf5402ddd5b2fa8a838505ac67b97
BLAKE2b-256 328af306cb87b0cbf49ed6ee7e6d366c6377618ba887c1aa5951a4304b8cb46f

See more details on using hashes here.

File details

Details for the file watch_run-0.0.13-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for watch_run-0.0.13-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2facd51557522a6d1e5a7391ae8175d0676725e9331bafb31651f0c1264cb296
MD5 cb9d00bffb020979b1f2c4008de85f53
BLAKE2b-256 21626e735a635468d6f442f70b7d134c4057a57dc19c83aba8c640f7dae02c55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page