Debugging VBScript from Notepad++ in Windows 7
Notepad++ is a very nice editor for VBScript. If you open a
With only a few steps, you can also invoke the debugger of your choice from within Notepad++, which makes it easy to edit your script, test it and edit some more without having to manually switch between different tools.
You can call Wscript.exe for debugging VBScript from Notepad++ in 64-bit Windows 7 as follows:
Go to folder
You should find a file named
Now you can start the debugger from the
A few remarks:
Notepad++ overwrites
For some reason, the 64-bit version of
If you want to set Windows to always use the 32-bit version for handling
For further information about shortcut.xml, find a detailed description here.
Under
.vbs file with it, the syntax will automatically be highlighted because VBScript language support is already built in. With only a few steps, you can also invoke the debugger of your choice from within Notepad++, which makes it easy to edit your script, test it and edit some more without having to manually switch between different tools.
You can call Wscript.exe for debugging VBScript from Notepad++ in 64-bit Windows 7 as follows:
Go to folder
%APPDATA%\Notepad++.You should find a file named
shortcuts.xml there. At the end of node <UserDefinedCommands>, add the following key: <Command name="Debug VBscript" Ctrl="no" Alt="no" Shift="no" Key="0">%WINDIR%\SysWOW64\wscript.exe /D /I /X "$(FULL_CURRENT_PATH)"</Comman d>Now you can start the debugger from the
Run menu of Notepad++.A few remarks:
Notepad++ overwrites
shortcuts.xml on shutdown, so you should use a different editor for this change, while Notepad++ is closed.For some reason, the 64-bit version of
Wscript.exe will just run the script without stopping for debugging. That's the reason the 32-bit version residing in the SysWOW64 folder is being called. If you want to set Windows to always use the 32-bit version for handling
.vbs files, you'll have to change the path to Wscript.exe under the registry path HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Com mand. The (Default) value will read something like "%SystemRoot%\System32\WScript.exe" "%1" %*. Leave the value intact but change System32 to SysWOW64.For further information about shortcut.xml, find a detailed description here.
Under
Run -> Modify Shortcut/Delete Command... you can assign a shortcut to invoke the debugger in Notepad++. Alternatively, you can set the parameters Ctrl, Alt, Shift and Key in the String that you add to shortcuts.xml.