You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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.
Activity
minrk commentedon Oct 8, 2015
If you override
get_ipython().debuggerwith your own function, you can modify it however you like. You can also access magics from the debugger in the slightly inconvenientget_ipython().magic("whos"), but note that this will dowhosin the IPython interactive namespace, not the debugger frame.MrMino commentedon Jun 20, 2022
Probable duplicate of gotcha/ipdb#33