This is a collection of extensions and sample scripts for extending WinDbg. We'll be adding more samples and extensions over time.
To load JavaScript extensions:
- Download the script file locally.
- Ensure you have a recent version of WinDbg - WinDbg Preview from the Microsoft Store will always be up to date. Otherwise you can use one of the other methods listed here to install it.
- Start your debugging session.
- The JavaScript extension (JSProvider) should load automatically. You can validate it's loaded by running the
.scriptproviders
command and checking if JavaScript is on the list.- If JavaScript isn't on the list, run
.load jsprovider
- If JavaScript isn't on the list, run
- Run
.scriptload <path to script>
or.scriptrun <path to script>
. The README for each script has more detailed usage information.
We have more information on our JavaScript support at https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/javascript-debugger-scripting. If you want to learn more about a script you can open in it WinDbg Preview by hitting the "Scripting" ribbon and clicking "Open Script...". It has intellisense support for JavaScript and NatVis and you can load scripts by hitting "Exceute" in the scripting ribbon.
All the samples and extensions we are publishing are open to contributions of fixes and improvements. At this point we aren't open to accepting new scripts and extensions from the community, but you can make your own repo and share them that way.