Enhanced Locals
This integration uses pure_eval
to safely evaluate additional expressions in the source code and display their values alongside other local variables.
This integration is experimental. It may be removed in minor versions.
Install
Install sentry-sdk
from PyPI with the pure_eval
extra or pip install pure_eval executing asttokens
.
Copied
pip install --upgrade 'sentry-sdk[pure_eval]'
Configure
Add PureEvalIntegration()
to your integrations
list:
Copied
import sentry_sdk
from sentry_sdk.integrations.pure_eval import PureEvalIntegration
sentry_sdk.init(
dns="https://examplePublicKey@o0.ingest.sentry.io/0",
integrations=[
PureEvalIntegration(),
],
)
Supported Versions
- Python: 3.5+
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").