Is there any extension command could to do so? I just want to the the whole command line including all parameters.
How to get the debuggee's command line in WinDbg?
Information like the command line args are stored in the PEB (Process Environment Block).
You can find a list of common commands here.
!peb
will display the PEB.
So many WinDbg commands available, and what they can display is encyclopaedic! Here's a good reference: windbg.info/doc/1-common-cmds.html –
Sybil
The "version" command lists the command-line of the windbg process, not the command-line of the process you're debugging. –
Pyroxylin
@alfa, you are right, in the case the debugge is launched by windbg, the command line for windbg hints the command line of the debuggee. –
Nest
You may use the following command not to parse the whole output of "!peb":
.shell -ci "!peb" findstr "CommandLine"
. –
Dulin try vercommand it's a lot simpler than !peb this is a good place to get you started: http://windbg.info/doc/1-common-cmds.html#2_general_cmds
This doesn't work since it reports command line of WinDbg, not the debuggee if it is attached at runtime. –
Nest
© 2022 - 2024 — McMap. All rights reserved.
version
which could list the command line as well. – Nest