Skip to main content

dynamic python tracing

Project description

First Terminal

python3 examples/script_to_debug.py

Second terminal

pymontrace -p "$(pgrep '[Pp]ython')" -e 'line:*/script_to_debug.py:13 {{ print("a", ctx.a, "b", ctx.b) }}'
Waiting for process to reach safepoint...
Probes installed. Hit CTRL-C to end...
a 4 b 3
a 3 b 7
a 7 b 1
a 1 b 8
a 8 b 0
^CRemoving probes...
Waiting for process to reach safepoint...
.


INSTALLATION:

pymontrace can be installed with pip or pipx or just run with pipx run at
your preference.

pip install pymontrace

pipx install pymontrace

pipx run pymontrace

uvx pymontrace


DOCUMENTATION:

See pymontrace -h and docs/introduction.adoc in the github repository
for some initial documentation.


WARNING:

- This is under early development and is in no way safe to use against
production workloads.

- The interface will change wildly without warning. There are no versioning
guarantees at this point.


CAVEATS:

- Use on macOS requires root. Use `sudo`.

- Probes will only fire if the function is entered after the probe has
been installed. This means that top level statements cannot be traced and
that the statements inside an outermost forever-loop cannot be traced.

Project details


Download files

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

Source Distribution

pymontrace-0.1.0.dev10.tar.gz (67.6 kB view details)

Uploaded Source

Built Distributions

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

pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (123.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (126.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

pymontrace-0.1.0.dev10-cp39-abi3-macosx_14_0_arm64.whl (54.7 kB view details)

Uploaded CPython 3.9+macOS 14.0+ ARM64

File details

Details for the file pymontrace-0.1.0.dev10.tar.gz.

File metadata

  • Download URL: pymontrace-0.1.0.dev10.tar.gz
  • Upload date:
  • Size: 67.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pymontrace-0.1.0.dev10.tar.gz
Algorithm Hash digest
SHA256 73ec2c2783a5bcbecacca042ebd20e96c42655569b2d3ef37e3b061140e0d4cf
MD5 48d02ff5cb0c7a444eca52ef4fdc2511
BLAKE2b-256 0425cc913a674676edfaab450edd0f720b0ae15a10ebc28847dfda5ff0d9f363

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev10.tar.gz:

Publisher: build-and-publish.yml on cakemanny/pymontrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a8b94a1272b95764148c46023408a41e4ed87a582d4bbd3c5327c71f5be75873
MD5 da40b30d7bce38483ab6ac5770cc46aa
BLAKE2b-256 790348e733160b7b24abe9f1ba28b7d1ebe04b5c4181104ed9bf90a71aebffe3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-and-publish.yml on cakemanny/pymontrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 14c7774455d4ac9344128356e48ac956f0dc8e1e86f85d0bab4556e6c8f414e7
MD5 f8602978e7a67b761671c08f0c49060e
BLAKE2b-256 a5c6284cc20eedc4047d33fb1734a52d3fb2356e9a4926a0867aea5ccfb6d09b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev10-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build-and-publish.yml on cakemanny/pymontrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymontrace-0.1.0.dev10-cp39-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev10-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fb2a15fc60c5efae1900dd57be514b256043ed48d739ef6bb4dd67fc46f50f01
MD5 91049a53957bdf8fa6f91dea37504970
BLAKE2b-256 de57be07540dea3d85583f4aaff2a140e734dd4aa4c48ac392c06ea3a1a5b420

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev10-cp39-abi3-macosx_14_0_arm64.whl:

Publisher: build-and-publish.yml on cakemanny/pymontrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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