.scriptload (Load Script)
The .scriptload command will load and execute the specified script file.
Specifies the name of the script file to load. ScriptFile should include the .js file name extension. Absolute or relative paths can be used. Relative paths are relative to the directory that you started the debugger in. File paths containing spaces are not supported.
user mode, kernel mode
live, crash dump
The .scriptload command will load a script and execute a script. The following command shows the successful load of TestScript.js.
If there are any errors in the initial load and execution of the script, the errors will be displayed to console, including the line number and error message.
- root code
- intializeScript function (if present in the script)
When a script is loaded using the .scriptload command, the intializeScript function and the root code of the script is executed, the names which are present in the script are bridged into the root namespace of the debugger (dx Debugger) and the script stays resident in memory until it is unloaded and all references to its objects are released.
The script can provide new functions to the debugger's expression evaluator, modify the object model of the debugger, or can act as a visualizers in much the same way that a NatVis visualizer does. For more information about NavVis and the debugger, see dx (Display NatVis Expression).
0:000> .load jsprovider.dll