# Treating NaN as error: Helping debugging

**URL:** <https://discourse.julialang.org/t/treating-nan-as-error-helping-debugging/36933>\
**Category:** General Usage\
**Tags:** question, debugging, nan\
**Created:** [April 3, 2020, 2:13am UTC](https://discourse.julialang.org/t/treating-nan-as-error-helping-debugging/36933 "2020-04-03T02:13:17Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [November 21, 2021, 10:12pm UTC](https://discourse.julialang.org/t/treating-nan-as-error-helping-debugging/36933/8 "2021-11-21T22:12:34Z")

</div>

You might be interested in this old post:

> [@NaN Detector](https://discourse.julialang.org/t/nan-detector/55024/7):
>
> I have a half-completed attempt at using a Cassette pass to find the first NaN that gets returned from any function. Needs some more work, but it found the NaN I was hunting for and then I moved on: [https://github.com/mbauman/TheNaNTrap.jl/](https://github.com/mbauman/TheNaNTrap.jl/)

---

_[View the full topic](https://discourse.julialang.org/t/treating-nan-as-error-helping-debugging/36933)._
