Showing line numbers in source window?

Hello all,

I’ve searched all over google for how to show the line numbers in the
source window. I’ve tried “l+s” (lower-case L + lower-case s), and it
tells me that it is active, yet in the source window, I don’t see
anything. I do see the line numbers though in the command line. Is
there a way to display this in the source window?

thanks,
J

That’s what ‘l+s’ does, I think - display it on the command line.

I believe what you need is either ‘l+t’ or to select ‘Source Mode’ from the ‘Debugging Menu.’

Good luck,

mm

Thanks for the reply. I’ve tried those already and still no luck :frowning:
Is what I want to do even possible with windbg? When I do ctrl+o to
open a source file, I was hoping it could list the line numbers for
me.

Thanks,
J

On Wed, Sep 9, 2009 at 4:21 PM, wrote:
> That’s what ‘l+s’ does, I think - display it on the command line.
>
> I believe what you need is either ‘l+t’ or to select ‘Source Mode’ from the ‘Debugging Menu.’
>
>
> Good luck,
>
> mm
>
> —
> WINDBG is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

The current line number is in the bottom right of the WinDBG window and
Ctrl+L allows you to go to a particular line. I don’t know of any way to
decorate the actual source code window with line numbers though.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Jonathon” wrote in message news:xxxxx@windbg…
> Thanks for the reply. I’ve tried those already and still no luck :frowning:
> Is what I want to do even possible with windbg? When I do ctrl+o to
> open a source file, I was hoping it could list the line numbers for
> me.
>
> Thanks,
> J
>
> On Wed, Sep 9, 2009 at 4:21 PM, wrote:
>> That’s what ‘l+s’ does, I think - display it on the command line.
>>
>> I believe what you need is either ‘l+t’ or to select ‘Source Mode’ from
>> the ‘Debugging Menu.’
>>
>>
>> Good luck,
>>
>> mm
>>
>> —
>> WINDBG is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>

Somewhat related, .open -a will go to the source line corresponding to a particular address.

- S

-----Original Message-----
From: Scott Noone
Sent: Thursday, September 10, 2009 11:23
To: Kernel Debugging Interest List
Subject: Re:[windbg] Showing line numbers in source window?

The current line number is in the bottom right of the WinDBG window and
Ctrl+L allows you to go to a particular line. I don’t know of any way to
decorate the actual source code window with line numbers though.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Jonathon” wrote in message news:xxxxx@windbg…
> Thanks for the reply. I’ve tried those already and still no luck :frowning:
> Is what I want to do even possible with windbg? When I do ctrl+o to
> open a source file, I was hoping it could list the line numbers for
> me.
>
> Thanks,
> J
>
> On Wed, Sep 9, 2009 at 4:21 PM, wrote:
>> That’s what ‘l+s’ does, I think - display it on the command line.
>>
>> I believe what you need is either ‘l+t’ or to select ‘Source Mode’ from
>> the ‘Debugging Menu.’
>>
>>
>> Good luck,
>>
>> mm
>>
>> —
>> WINDBG is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>


WINDBG is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Source line numbers are displayed in the status line, when you click in the
source window.
–pa

“Jonathon” wrote in message news:xxxxx@windbg…
> Hello all,
>
> I’ve searched all over google for how to show the line numbers in the
> source window. I’ve tried “l+s” (lower-case L + lower-case s), and it
> tells me that it is active, yet in the source window, I don’t see
> anything. I do see the line numbers though in the command line. Is
> there a way to display this in the source window?
>
> thanks,
> J
>

Thanks everyone for their replies. It works great :slight_smile:

J

On Thu, Sep 10, 2009 at 12:20 PM, Pavel A. wrote:
> Source line numbers are displayed in the status line, when you click in the
> source window.
> --pa
>
> “Jonathon” wrote in message news:xxxxx@windbg…
>>
>> Hello all,
>>
>> I’ve searched all over google for how to show the line numbers in the
>> source window. ?I’ve tried “l+s” (lower-case L + lower-case s), and it
>> tells me that it is active, yet in the source window, I don’t see
>> anything. ?I do see the line numbers though in the command line. ?Is
>> there a way to display this in the source window?
>>
>> thanks,
>> J
>>
>
> —
> WINDBG is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>