Closed
Description
Is it possible to enter the debugger when a warning is raised similar to the usage of the --pdb
flag when normal exceptions are raised?
The reason why I'm asking is that I have the following warning in the warnings summary and I wan't to know where and why it is raised:
=============================== warnings summary ===============================
integrationtests/test_blocks.py::TestA::test_a
/usr/lib64/python2.7/site-packages/numpy/core/_methods.py:83: RuntimeWarning: Degrees of freedom <= 0 for slice
warnings.warn("Degrees of freedom <= 0 for slice", RuntimeWarning)