How to go to top frame in pdb (python debugger)

0 votes
When pdb / ipdb is used in post-mortem mode, it drops you into an interactive shell where you can explore the environment at the stack frame of the most deeply nested code. I'm usually not interested in the situation several levels down into some library. I am facing an issue in the function. I have to press "u" several times to get back up to the level of the code I wrote.

Is there a way I can jump to the "top" to speed this up? Can anyone tell me a shortcut to go straight to a particular stack frame?
Apr 30 in Python by ana1504.k
• 7,870 points
47 views

1 answer to this question.

0 votes

You can use a PdbExtension for this.

See https://github.com/fschulze/pytest-pdb/pull/5 where this is about to be added to pytest-pdb.

answered Apr 30 by SDeb
• 13,180 points

Related Questions In Python

0 votes
1 answer

How to replace values with None in Pandas data frame in Python?

Actually in later versions of pandas this ...READ MORE

answered Aug 30, 2018 in Python by Priyaj
• 56,920 points
2,049 views
0 votes
1 answer

How to drop missing value in python data-frame?

Hi Sarada,  I understand you are having problems with ...READ MORE

answered May 27 in Python by sampriti
• 1,100 points
56 views
+3 votes
5 answers

How to read multiple data files in python

Firstly we will import pandas to read ...READ MORE

answered Apr 6, 2018 in Python by DeepCoder786
• 1,720 points
2,591 views
+4 votes
7 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 340 views
0 votes
1 answer

How to Reverse a list in Python

You can use the reversed function in ...READ MORE

answered Sep 28, 2018 in Python by SDeb
• 13,180 points
79 views
0 votes
1 answer

How do I append one string to another in Python?

If you only have one reference to ...READ MORE

answered Oct 22, 2018 in Python by SDeb
• 13,180 points
49 views