How can we make Windbg portable ?
Exiting WinDbg You can exit WinDbg by choosing Exit from the File menu or by pressing ALT+F4. If you are performing user-mode debugging, these commands close the application that you are debugging, unless you used the -pd command-line option when you started the debugger.
Navigate to your installation directory, and open WinDbg.exe. On 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.
Get started using WinDbg. On the host computer, open WinDbg and establish a kernel-mode debugging session with the target computer. In WinDbg, choose Contents from the Help menu. This opens the debugger documentation CHM file.
Download WinDbg Preview from the Microsoft Store: WinDbg Preview. Learn more about installation and configuration in WinDbg Preview - Installation.
WinDbg doesn't require any installation. You can run it from an USB stick if you will or just XCOPY deploy it. Microsoft makes sure that WinDbg doesn't require any specific registry settings etc in order to run.
Quote from Microsoft
For as long as I can remember, the windbg programmers have been meticulous in making sure that the installation does not require any registry settings or other COM registration or whatever in order to run.
As for SOS, which is needed to debug managed code using WinDbg, this is part of the .NET framework, so if .NET is present on the machine, so will the correct version of SOS be.
windbg is a proprietary tool made by Microsoft.
We (as a community) can't make is portable, only Microsoft can.
As a windows specific tool, I can't see that it will be easy to port and I can't see any incentive for Microsoft to port it to another OS either.
Since you clarified that you want to be able to run it off a USB key, rather than have a version for different OSs:
As far as I know, this is not possible.
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