When I use Windbg's "Open Executable..." functionality to use Windbg to step through an executable's execution, is it possible for me to specify command line parameters to be used when running the executable? If so, how do I go about doing it?
Launch Notepad and attach WinDbgOn the File menu, choose Open Executable. In the Open Executable dialog box, navigate to the folder that contains notepad.exe (typically, C:\Windows\System32). For File name, enter notepad.exe. Select Open.
When WinDbg is in dormant mode, you can attach to a running process by choosing Attach to a Process from the File menu or by pressing F6. In the Attach to Process dialog box, select the process you want to debug, and select OK.
If you just need the Debugging Tools for Windows, and not the Windows Driver Kit (WDK) for Windows, you can install the debugging tools as a standalone component from the Windows Software Development Kit (SDK). In the SDK installation wizard, select Debugging Tools for Windows, and deselect all other components.
You can exit WinDbg by choosing Exit from the File menu or by pressing ALT+F4.
There's an arguments text box available in the Open Executable dialog that can be filled in with any arguments you want to pass to the executable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With