You can write scripts that require command-line arguments or parameter values. To test these scripts in the debugger, you need to pass test arguments to your script.
To debug a script that requires arguments
•Click Home > in the Debug section, click the Go menu > then click Debug with arguments:
This feature will allow you to specify script command-line arguments while debugging.
You can also store the debug parameters within the script by adding %DebugArguments% comments to the code.
# %DebugArguments%=Server01
or in VBScript
' %DebugArguments%=Server01
To specify an argument with spaces or special characters, enclose it in quotation marks.
# %DebugArguments%="New York"
To specify multiple arguments, enter them in the order that they are specified in the script.
%DebugArguments%=Servername Username password
See also: