# NaN Detector

**URL:** <https://discourse.julialang.org/t/nan-detector/55024>\
**Category:** General Usage\
**Tags:** debugging, nan\
**Created:** [February 10, 2021, 8:25pm UTC](https://discourse.julialang.org/t/nan-detector/55024 "2021-02-10T20:25:18Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [February 11, 2021, 3:23pm UTC](https://discourse.julialang.org/t/nan-detector/55024/7 "2021-02-11T15:23:05Z")

</div>

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/nan-detector/55024)._
