query about windows debugger

while debugging using windbg i have created a pipe in VMware and modified boot.ini for setting target os in VMware in debugging mode. now i created a .bat file containing
c:
cd C:\Program Files\Debugging Tools for Windows
windbg -b -k com:pipe,port=\.\pipe\com_1,resets=0

i executed this bat file in host os at the time of startup of target os in debug mode. but connection is not established and i m getting message like “waiting to reconnect”
so where i m getting wrong in establishing connection. please help me.Exactly at what time should i run this bat file.
thanking in advance…

I found that the connection is set up reliably if you start the debugger as
soon as the target “waits”, after the display of loaded modules.
So my personal perfect timing is: choose and start debug entry in ntldr
boot menu, then search and start my batch.

Regards
Else

|---------±-------------------------------->
| | xxxxx@gmail.com |
| | Sent by: |
| | bounce-310930-18867@li|
| | sts.osr.com |
| | |
| | |
| | 01/11/2008 12:39 PM |
| | Please respond to |
| | “Windows File Systems |
| | Devs Interest List” |
|---------±-------------------------------->
>-----------------------------------------------------------------------------------------------------------|
| |
| To: “Windows File Systems Devs Interest List” |
| cc: |
| Subject: [ntfsd] query about windows debugger |
>-----------------------------------------------------------------------------------------------------------|

while debugging using windbg i have created a pipe in VMware and modified
boot.ini for setting target os in VMware in debugging mode. now i created a
.bat file containing
c:
cd C:\Program Files\Debugging Tools for Windows
windbg -b -k com:pipe,port=\.\pipe\com_1,resets=0

i executed this bat file in host os at the time of startup of
target os in debug mode. but connection is not established and i m getting
message like “waiting to reconnect”
so where i m getting wrong in establishing connection. please help
me.Exactly at what time should i run this bat file.
thanking in advance…


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@utimaco.de
To unsubscribe send a blank email to xxxxx@lists.osr.com

Did you set up VMWARE virtual machine to have serial port,
redirected to pipe ?
If not, refer to VMWARE help, the process is described there

L.

see this tutorial: http://silverstr.ufies.org/lotr0/windbg-vmware.html

wrote in message news:xxxxx@ntfsd…
> while debugging using windbg i have created a pipe in VMware and modified
> boot.ini for setting target os in VMware in debugging mode. now i created
> a .bat file containing
> c:
> cd C:\Program Files\Debugging Tools for Windows
> windbg -b -k com:pipe,port=\.\pipe\com_1,resets=0
>
> i executed this bat file in host os at the time of startup of
> target os in debug mode. but connection is not established and i m getting
> message like “waiting to reconnect”
> so where i m getting wrong in establishing connection. please help
> me.Exactly at what time should i run this bat file.
> thanking in advance…
>
>

@zezula
i have made the serial port as given in the link
http://silverstr.ufies.org/lotr0/windbg-vmware.html
its showing that pipe in VM option in VMware… that means pipe has been created…
but still its not connecting…

@Else Kluger
i have tried both the timings, means start first the debugger and then started the target os.
also the reverse way i have done. but both the ways are not giving me the required thing.

Try hitting control-break. On my setup, windbg won’t reconnect until I
do (though I will see DbgPrint() messages before I do that). Once I
break in and the symbols are loaded, I can work normally. Just booting
the target and having the host running doesn’t seem to be enough to make
the connection happen.

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Friday, January 11, 2008 9:45 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] query about windows debugger

@zezula
i have made the serial port as given in the link

http://silverstr.ufies.org/lotr0/windbg-vmware.html
its showing that pipe in VM option in VMware… that means pipe
has been created…
but still its not connecting…

@Else Kluger
i have tried both the timings, means start first the debugger and
then started the target os.
also the reverse way i have done. but both the ways are not
giving me the required thing.


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

>like “waiting to reconnect”

so where i m getting wrong in establishing connection. please help me.Exactly >at what time should i run this bat file.

after you run the bat file and while windbg is waiting to reconnect
did you try rebooting the vmware image

most of the time kd gets connected without problems on reboot

i prefer to run kd first in host and let it wait then start vpc later

@ERIC:

How should i install the operating system symbols in Host machine…?

>How should i install the operating system symbols in Host machine…?

Read the documentation for .symfix.

Also, there is a separate forum for Windbg. I would recommend you to post the queries related specifically to Windbg there. :slight_smile:

Regards,
Ayush Gupta