Skip to content

enter debugger when warning is raised #3223

Closed
@twmr

Description

@twmr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: warningsrelated to the warnings builtin plugintype: questiongeneral question, might be closed after 2 weeks of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions