Debugging assets during execution
Sometimes you may want to debug an asset while it is executing. To simplify this process, Dagster supports interactive debugging with pdb
through the AssetExecutionContext
of an asset. pdb
helps you identify and fix bugs by enabling you to inspect variables and program flow in an interactive debugging console starting from a breakpoint you set in your code.
This can be useful when debugging assets with complex transformations or assets that retrieve data from external systems where you want to work directly with the data inside of the asset.
Prerequisites
To follow the steps in this guide, you'll need to create a Dagster project with the create-dagster
CLI.