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.dev8.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.dev8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (121.6 kB view details)

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

pymontrace-0.1.0.dev8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (124.5 kB view details)

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

pymontrace-0.1.0.dev8-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.dev8.tar.gz.

File metadata

  • Download URL: pymontrace-0.1.0.dev8.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.dev8.tar.gz
Algorithm Hash digest
SHA256 c023d48eafda3538b7aa807d0b93a2578ef7671786fb41ab431db5d01c1c13f6
MD5 470084553673ab54d50367349a5f33d1
BLAKE2b-256 a7aaa77745fe86e818392a6fd4665dbb061592b3e27bdc1348cab2bd560656de

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev8.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.dev8-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.dev8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c3706aa17b6c94d5f00301edcfb722b12dae97c8e459e5ac4b367c5cfbf7d534
MD5 a2879337ddb34f9ae2f3a4d217babcae
BLAKE2b-256 c27bf3065a2b866fec2ab351ec2ea7c6b9ac17f1407a832aeab6fd5102520580

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 608e7220e0e1ed192719880df82b0f5f627b279469ce251caad93f3ec28dfbc3
MD5 2c9a163d57baa8140c58c3a0f6e779b5
BLAKE2b-256 83923f8dd2541c51986be7c8efa2d826f26fa721003428dfcd096d120572dad8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev8-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9858fb2a395ddfc787c0e688f3ef6d016b227032cb14c078ad74845b8a2f7d6c
MD5 f1a9e9482f7eee7084cdced78d449ad2
BLAKE2b-256 1a5f4d255f45ad614bc6437c426c9cbbdc9b7817e673ca08ff29ad4da7f89fbd

See more details on using hashes here.

Provenance

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