How to make PyCharm to break on Runtime warning?

pycharm

Solution

I did my own research and similarly to what @doctorlove said, do

numpy.seterr(all='raise')

then numpy will raise exceptions instead of RuntimeWarnings. The exceptions can then be caught by PyCharm.

Problem

I have encountered "RuntimeWarning: overflow encountered in exp ..." in my code. How do I make pyCharm break on this warning? It currently runs past it.

Original source

Related problems