I am new to WinDbg and i would like to trace the name of the functions that are being called (including their parameters if possible).
I have set up WinDbg with the correct symbols and successfully attached to the service(typical user-mode service) I want to debug which is located on a remote machine. (I am using connect to remote stub)
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Tuesday, June 28, 2011 9:55 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Tracing Function Names WINDBG
Hi,
I am new to WinDbg and i would like to trace the name of the functions that
are being called (including their parameters if possible).
I have set up WinDbg with the correct symbols and successfully attached to
the service(typical user-mode service) I want to debug which is located on
a remote machine. (I am using connect to remote stub)
On Tue, Jun 28, 2011 at 3:48 PM, wrote: > NOTE: ?I have the source code for this service. And of course if you only need to trace calls inside of your own code then you can just use debug prints or WPP (though you have to put all trace statements “manually”).
@Krzysztof thats exactly what i am trying to avoid since this particular service has LOTS of functions with lots of different exit points… (unfortunately)
My own proclivity would be to use the Visual Studio debugger for user-level
code. It does support remote debugging, although I have never done this.
joe
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Tuesday, June 28, 2011 9:55 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Tracing Function Names WINDBG
Hi,
I am new to WinDbg and i would like to trace the name of the functions that
are being called (including their parameters if possible).
I have set up WinDbg with the correct symbols and successfully attached to
the service(typical user-mode service) I want to debug which is located on
a remote machine. (I am using connect to remote stub)
It actually works quite well, and less there is a need for kernel work, far better than WinDbg.
Gary G. Little
----- Original Message -----
From: “Joseph M. Newcomer” To: “Windows System Software Devs Interest List” Sent: Tuesday, June 28, 2011 1:07:35 PM Subject: RE: [ntdev] Tracing Function Names WINDBG
My own proclivity would be to use the Visual Studio debugger for user-level code. It does support remote debugging, although I have never done this. joe
-----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com Sent: Tuesday, June 28, 2011 9:55 AM To: Windows System Software Devs Interest List Subject: [ntdev] Tracing Function Names WINDBG
Hi,
I am new to WinDbg and i would like to trace the name of the functions that are being called (including their parameters if possible).
I have set up WinDbg with the correct symbols and successfully attached to the service(typical user-mode service) I want to debug which is located on a remote machine. (I am using connect to remote stub)
On Tue, Jun 28, 2011 at 4:18 PM, wrote: > @Krzysztof ?thats exactly what i am trying to avoid since this ?particular service has LOTS of functions with lots of different exit points… (unfortunately) ?
If this is for user mode code maybe you can use “wt” command. For kernel I guess that you can try pct/tct/t running in a loop with some logic to display only the elements that you are interested in - though it’s not nice solution since it’s going to significantly slow down execution.
Btw. IMO the only two things that VS debugger does better than WinDBG is debugging managed code (sos ext is far from being perfect) and STL code (again the built support is not so great but you can always write script/ext to make it work).
Remote debugging via the VS debugging makes me absolutely insane. Drives me nuts. Makes me scream. The whole security thing is incredibly obtuse and annoying. It’s PARTICULARLY fun when you have, for example, your dev box in a domain and your test box NOT in a domain. VERY handy. As far as I can tell, getting remote debugging to work hinges on coincidentally setting matching usernames and passwords (even though one is in a domain and the other us for the local machine account).
>debugging to work hinges on coincidentally setting matching usernames and passwords
Connect to SMB on target via “net use \Machine\ipc$ /user:UserName”, there are good chances that NTLMSSP will reuse this password for the debugger too.
Recent vintages of VS appear to support remote debugging without
requiring one to commit felonious assault on kittens. Versions prior
to 2008, not so much.
Mark Roddy
On Wed, Jul 6, 2011 at 10:42 AM, wrote: > (is this an off-topic rant?) > >
> > Remote debugging via the VS debugging makes me absolutely insane. ?Drives me nuts. ?Makes me scream. ?The whole security thing is incredibly obtuse and annoying. ?It’s PARTICULARLY fun when you have, for example, your dev box in a domain and your test box NOT in a domain. ?VERY handy. ?As far as I can tell, getting remote debugging to work hinges on coincidentally setting matching usernames and passwords (even though one is in a domain and the other us for the local machine account). > > Give me WinDbg ANyday… > > Peter > OSR > > > — > NTDEV 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 >