Skip to content

How to access ipython command in ipdb #8830

Open

Description

@QiangF

Hi everyone,
When I execute a function in ipython, it stops at an error, I use the magic %debug, now I enter ipdb.
How do I get the ipython command like who and whos? Is there a hook for entering ipdb so I can define my own commands?
Thank you!

Activity

  1. minrk commented on Oct 8, 2015

    @minrk
    Member

    If you override get_ipython().debugger with your own function, you can modify it however you like. You can also access magics from the debugger in the slightly inconvenient get_ipython().magic("whos"), but note that this will do whos in the IPython interactive namespace, not the debugger frame.

  2. added this to the wishlist milestone on Oct 8, 2015
  3. reopened this on Jun 20, 2022
  4. MrMino commented on Jun 20, 2022

    @MrMino
    Member

    Probable duplicate of gotcha/ipdb#33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions