title: Visual Studio C++ 2008 / 2010 - break on float NaN
body: <p>Is there any way to set up Visual Studio (just upgraded from 2008 to 2010) to break, as if an assertion failed, whenever <em>any</em> floating point number becomes NaN, QNAN, INF, etc?</p>
  
  <p>Up until now I have just been using the assert(x == x) trick, but I would rather something implicit, so that I dont have to add assertions everywhere.</p>
  
  <p>Quite surprised I can't find an answer to this via google.  Some stuff about 'floating point exceptions', but I'm not sure if they are the same thing, and I've tried enabling them in Visual Studio, but the program doesn't break until something catastrophic happens because of the NaN later on in execution.</p>