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...
.


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.dev7.tar.gz (65.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.dev7-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (121.3 kB view details)

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

pymontrace-0.1.0.dev7-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (124.3 kB view details)

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

pymontrace-0.1.0.dev7-cp39-abi3-macosx_14_0_arm64.whl (52.7 kB view details)

Uploaded CPython 3.9+macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: pymontrace-0.1.0.dev7.tar.gz
  • Upload date:
  • Size: 65.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.dev7.tar.gz
Algorithm Hash digest
SHA256 16a26cfc05cf16d2b6565aaa87437d7738a7d1c14a2d6b3e73e736f98b5b1153
MD5 e21c59e6b61e053017ee9cf1ec6fb3e7
BLAKE2b-256 3cf46a760fde33b7c217a388b9758d9b2fa28d21219e4f8e59f99b35902e55df

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev7.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.dev7-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.dev7-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0de28d51bba60aadf38f84cbfcdc5d88c1b8126895a422fc4d37efcf7f270d41
MD5 7e51f61019334dc491fe6db5c375ced0
BLAKE2b-256 8f8f850386f0403ccaf08383b713f50e89009c76e84f0d6dc0d2e39b927ddcb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev7-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.dev7-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev7-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 688668823246c0cf0a868b907276d3a812e45efc10907478a31dc581db202db6
MD5 faf3d620a882ee78c590a45acacb3185
BLAKE2b-256 b991a06f3797981d8adc568aeea0eceee06e5509c132f631caf34c3e7b09716d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev7-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.dev7-cp39-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev7-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2dbd0a6959fe62b90c93bf5d76164357b0673b32b2bccaa9f92be8aa3a784abe
MD5 99bce7e451c0fd9d508d5f0d8afd528c
BLAKE2b-256 ad48501ed98b288c25ba68fc75446b481bb8911caef4d3c8b22a99dc0908cbad

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev7-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