Skip to main content

pydevd debugger plugin for OmegaConf

Project description

OmegaConf pydevd Plugin

omegaconf-pydevd provides the optional pydevd plugin for OmegaConf objects.

This debugger integration is packaged separately from the main omegaconf distribution so that the global pydevd_plugins namespace is only installed on systems that explicitly opt into it.

Installation

pip install omegaconf-pydevd

Debugger Demo

Use examples/debug_demo.py to inspect OmegaConf objects in the debugger with omegaconf-pydevd installed.

Set a breakpoint on print(cfg) and inspect:

  • cfg
  • cfg.greeting
  • cfg.subprojects
  • cfg.project

With omegaconf-pydevd installed:

  • missing fields render as debugger values instead of surfacing a debugger-time exception while inspecting them
  • interpolations are shown more clearly, including their resolved values

Example Rendering

OmegaConf pydevd debugger rendering

Resolver Mode

Use the OC_PYDEVD_RESOLVER environment variable to select which resolver to install:

  • USER: default behavior, useful when debugging OmegaConf objects
  • DEV: useful when debugging OmegaConf itself and inspecting its internal data model
  • DISABLE: disable the OmegaConf resolver

Example:

OC_PYDEVD_RESOLVER=DEV python your_program.py

Development

From this repository root:

pip install -r requirements/dev.txt -e .
pip install -e subprojects/omegaconf-pydevd
pytest subprojects/omegaconf-pydevd/tests

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

omegaconf_pydevd-2.4.0.dev11.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

omegaconf_pydevd-2.4.0.dev11-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file omegaconf_pydevd-2.4.0.dev11.tar.gz.

File metadata

  • Download URL: omegaconf_pydevd-2.4.0.dev11.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for omegaconf_pydevd-2.4.0.dev11.tar.gz
Algorithm Hash digest
SHA256 1f2f213e26fdb5e5372651a3c2d56a0c9c9aad9264306daa784e7a92c1f248e3
MD5 969125cb1ca86d79d7ad5e65f23a628e
BLAKE2b-256 3cb625f0ead65820575fefc29627b88ca79552f0449b8cdc11537a36fd20998b

See more details on using hashes here.

Provenance

The following attestation bundles were made for omegaconf_pydevd-2.4.0.dev11.tar.gz:

Publisher: publish_dev.yml on omry/omegaconf

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

File details

Details for the file omegaconf_pydevd-2.4.0.dev11-py3-none-any.whl.

File metadata

File hashes

Hashes for omegaconf_pydevd-2.4.0.dev11-py3-none-any.whl
Algorithm Hash digest
SHA256 1d455c51a1a7eeaf8d91881a5c2bdb0ca0c7929a522838f91217f8cd8c8be5e2
MD5 2e6187e65338e52824e7e6a079531aea
BLAKE2b-256 3412032248069c49b64b20d43b675fad283d1659e47b00203aa6e776da61ed88

See more details on using hashes here.

Provenance

The following attestation bundles were made for omegaconf_pydevd-2.4.0.dev11-py3-none-any.whl:

Publisher: publish_dev.yml on omry/omegaconf

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