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.dev4.tar.gz (46.4 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.dev4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (79.8 kB view details)

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

pymontrace-0.1.0.dev4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (80.1 kB view details)

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

pymontrace-0.1.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (79.8 kB view details)

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

pymontrace-0.1.0.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (80.1 kB view details)

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

pymontrace-0.1.0.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (80.3 kB view details)

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

pymontrace-0.1.0.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (80.7 kB view details)

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

pymontrace-0.1.0.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (79.4 kB view details)

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

pymontrace-0.1.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (79.8 kB view details)

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

pymontrace-0.1.0.dev4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (79.1 kB view details)

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

pymontrace-0.1.0.dev4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (79.5 kB view details)

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

File details

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

File metadata

  • Download URL: pymontrace-0.1.0.dev4.tar.gz
  • Upload date:
  • Size: 46.4 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.dev4.tar.gz
Algorithm Hash digest
SHA256 82d039e84642c4caba537abfd53383a6b8bf84b3cbb69ef3504b29fff82847b6
MD5 dcd493dca00f6895f0f0695f23db8910
BLAKE2b-256 9b5de1f81baf35e21551100bce5ec9fff6e263b1e362f2da38e8052ea72f82cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4.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.dev4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fe4242f0f11324a820ef6e7584a8a047aea5467554cc5adc640093c92ab44c7f
MD5 eedc3f972006410c9a3ff87622c2ae40
BLAKE2b-256 f958274889ebfa5335f219b62f4d60f0b53b48c08e3eb0ef8c42837a9ff92d89

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_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.dev4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c0e610c37871ad54dc60de9fe8050f14c36e8cc11b1e05e45af57051402bfe04
MD5 24c04a1592a957afe99ed6a83f1569b6
BLAKE2b-256 87ec3cc7da08b892422af2edc8cb4bece92ec84013970ffedd16fd7737d2870a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_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.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dec6abd721e97767a2c58435a2455fb84e505ff1605e57c731edc5f39d6c8012
MD5 e28ace3e92a769a01de6e0bc95766d7d
BLAKE2b-256 6958972a0e8d369c34c9decf81c6ad70198f28fc82e5b3b94d5a64881899379a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_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.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 57e556af058633c0e9d24708417d9947aee0e082a7ec59f034eec0f31ad59bc7
MD5 5b9ce63d651140edd46b537439367141
BLAKE2b-256 7f00b12043a03721baf241afa6d92ae65742a7cf7ccc6e65968490f36468de3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_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.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bcc03c1a10a2b4d9dd5c01c2abe19c696381309fdb9749169e116b62a56a3c72
MD5 ca2010807530913771690b72cb81094e
BLAKE2b-256 71611d7474bcf5e31c9b70de2299e313eb31421a9f43322bdd0695ad1f169599

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_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.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 13500e602208c324b0770c1f924189775c660780a03f88d39d1832be96ca33de
MD5 5dc513c97dfe3bb7ab2dd0344b76e81d
BLAKE2b-256 c0dece3b418ea49d7e3918a819d23aa4a91ca7d15cd63175ac07f97dca73f5a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_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.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb9a35620432c8a9e00f3a236a4aaf0d3130e426154f5a6ec5b593a643c88151
MD5 94dcec225000a5e76c398352b5066c92
BLAKE2b-256 f36cb89d76789a8415c953834f644206cb481def42fa69e59c7372253423dc79

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_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.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aaf545394eec1aae400ac95e1d3ebd940e141be4d853b199f138993f324cbb9a
MD5 90b246f4e946da08ff5f4353023249c8
BLAKE2b-256 94d6b2f544ffeedb1d633f324e6c3e38899f64d296758945c74c580e6a061c03

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_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.dev4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8386d8a0e0287de0e2d46ebf54bb64b42bebbe024a5974ad9321be33f31a9a5e
MD5 92400b16f098e2f89afd971ab2cbb0b1
BLAKE2b-256 be525045c773310610bd84ed1ab85c3b4639d5a586171730c807a17039a938c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pymontrace-0.1.0.dev4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bc3a51a7f5e0fa78d959eb288797531e45790a6628996875e48aa79e71bda7f8
MD5 465006770b03289c60efbf861ceb6fe2
BLAKE2b-256 15218faf7abd2ab430a9c69ef58b8e7f713f35dd5baef357a456b4bba2f95857

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymontrace-0.1.0.dev4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_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.

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