# Example of using aesara.printing.Print for model troubleshooting

**URL:** <https://discourse.pymc.io/t/example-of-using-aesara-printing-print-for-model-troubleshooting/10042>\
**Category:** v5\
**Tags:** aesara\
**Created:** [July 29, 2022, 11:17pm UTC](https://discourse.pymc.io/t/example-of-using-aesara-printing-print-for-model-troubleshooting/10042 "2022-07-29T23:17:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_K](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/igor_k/32/5014_2.png) [@Igor\_K](https://discourse.pymc.io/u/Igor_K)\
**Post date:** [July 29, 2022, 11:17pm UTC](https://discourse.pymc.io/t/example-of-using-aesara-printing-print-for-model-troubleshooting/10042/1 "2022-07-29T23:17:29Z")

</div>

I’m looking for a good example of a model failing mid-run. Some context: I’m working on updating a “[How to debug a model](https://docs.pymc.io/en/v3/pymc-examples/examples/pymc3_howto/howto_debugging.html)” example from pymc-examples. The old example doesn’t work anymore because pymc exception messages got so much better (it makes aesara.printing.Print unnecessary - which is awesome by the way). I played with various badly defined models (things like sigma = a+b\*x, Neal’s funnel), but I can’t get my models to fail mid-run. Sure, they produce terrible diagnostics (like high R-hat and low ess), but in those cases I can just route problematic intermediate values to a Deterministic variable (which again removes the need for aesara.printing.Print). I can use one of these models as an example, but it doesn’t seem like a good solution. Any thoughts? Thanks!

---

<div class="post-metadata">

**Author:** ![jstanley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jstanley/32/3711_2.png) [@jstanley](https://discourse.pymc.io/u/jstanley)\
**Post date:** [December 10, 2022, 6:55am UTC](https://discourse.pymc.io/t/example-of-using-aesara-printing-print-for-model-troubleshooting/10042/2 "2022-12-10T06:55:29Z")

</div>

Hey there @Igor_K, did you ever find a good example of `aesara.printing.Print`? I’m currently trying to use it also and I don’t seem to be having much success. Thanks!
