I am trying to learn Python, and I am still a novice so please bear with me. I am using the Komodo IDE environment. I currently wish to debug a a runtime warning that says:
RuntimeWarning: invalid value encountered in greater & (matrixCsvOutput[:,8] > 30))[0] ,:]
Now, I wish to set a breakpoint that would allow me to examine the composition of "matrixCsvOutput" at runtime. I expect that the value in question may be a null or a nan, and therefore fail the operation.
My question is: how can I set the debugger to break when the runtime error occurs? Many thanks in advance!
before the line number mentioned in RuntimeWarning, add this:
import pdb ; pdb.set_trace()