How do I share Javascript code between files in Windbg preview?
问题 How do I share Javascript code between files in Windbg preview? Right now I have several helper methods that I have copied and pasted into different javascript files. I'm not all that experienced with javascript, so my apologies if this is a stupid question. As an example, let's say I want to use this function in more than one file: function GetGuid( objectPtr ) { return ExecuteCommandToString( "dt nt!_GUID " + objectPtr ) .FindLineContaining("{").trim().replace("{", "").replace("}",""); }