473,394 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to list current line in pdb?

Hi all,

Using the pdb shell, after repeatedly entering 'l' (lowercase 'L'),
how do I jump back to listing the current line again if I don't
remember exactly what line my current line is? Do I just have to list
an early line in the code and repeatedly list from there until I see
the '->' indicating the current line?

Thanks,
Chris

Mar 23 '07 #1
2 3316
"Chris Lasher" <ch**********@gmail.comwrote:
Using the pdb shell, after repeatedly entering 'l' (lowercase 'L'),
how do I jump back to listing the current line again if I don't
remember exactly what line my current line is? Do I just have to list
an early line in the code and repeatedly list from there until I see
the '->' indicating the current line?
Try:

(Pdb) alias ll u;;d;;l
and thereafter the 'll' command will list the current line (unless you are
in the uppermost stack frame in which case it goes down one stackframe
instead).

Save the alias in your .pdbrc file.
Mar 23 '07 #2
On Mar 23, 11:56 am, Duncan Booth <duncan.bo...@invalid.invalid>
wrote:
"Chris Lasher" <chris.las...@gmail.comwrote:
Using the pdb shell, after repeatedly entering 'l' (lowercase 'L'),
how do I jump back to listing the current line again if I don't
remember exactly what line my current line is? Do I just have to list
an early line in the code and repeatedly list from there until I see
the '->' indicating the current line?

Try:

(Pdb) alias ll u;;d;;l

and thereafter the 'll' command will list the current line (unless you are
in the uppermost stack frame in which case it goes down one stackframe
instead).

Save the alias in your .pdbrc file.
Alright. Thanks, Duncan!

Mar 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: n00m | last post by:
import socket, thread host, port = '192.168.0.3', 1434 s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s2 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s2.connect((host, 1433))...
1
by: Andrej Hocevar | last post by:
Hello, below I've attached a test program reading data from a file and storing that information in a linked list. First problem is that current->p_name will print only the last item in the file...
57
by: Xarky | last post by:
Hi, I am writing a linked list in the following way. struct list { struct list *next; char *mybuff; };
16
by: pauldepstein | last post by:
Can anyone give a realistic example of a task for which the list container works better than vector or deque? Paul Epstein
4
by: finer | last post by:
i'm new to C#, but i'm trying to write a circular doubly linked list. theres a bug in my code somewhere (i think in my find() method or ToGo() method) that causes an endless loop after i insert a...
10
by: AZRebelCowgirl73 | last post by:
This is what I have so far: My program! import java.util.*; import java.lang.*; import java.io.*; import ch06.lists.*; public class UIandDB {
1
by: Givisi | last post by:
Hello all! I am a completly newbie at C and I dont have good basis from Java so I cant get the linked lists part from C. I am trying to run the code from the function that is written at the end of...
5
by: oceanspell | last post by:
I made a linked list that can add an item, go to the first item, and get the current, next, and previous item in the list. When I compile it, there are no errors, but it overloads. Here is the...
4
by: sedaw | last post by:
what`s the warning message bout ? line 47: error C2037: left of 'value' specifies undefined struct/union 'Node' TNX ...... the code: #include <stdio.h> #include <stdlib.h>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.