

- MISCROSOFT SCRIPT DEBUGGER HOW TO
- MISCROSOFT SCRIPT DEBUGGER INSTALL
- MISCROSOFT SCRIPT DEBUGGER CODE
Beginning with Reliance 4.1.3, a system message is periodically generated to inform the user that the debugging of scripts is enabled. Therefore, it is strongly recommended that you disable the debugging of scripts when running a Reliance project on the end-user's computer (in a production environment). When a script is being debugged, all other scripts belonging to the same thread of execution are blocked.As a result, a Just-In-Time debugger can also be invoked by a program other than Reliance. The Enable script debugging with external tool (Just-In-Time debugger) option affects all programs installed on the computer.To change the value of the variable nIndex to 30, type: nIndex=30 To examine the value of the variable nIndex, type: ? nIndex Now it is possible to examine or change the value of any variable through a command window that can be displayed by choosing the Command Window command. The execution will stop on the breakpoint line.Ĩ. Run the interrupted script using the Run command. Place the cursor on the 5th line and set a breakpoint on it using the Toggle BreakPoint command.ħ.
MISCROSOFT SCRIPT DEBUGGER CODE
When the debugger is launched, it automatically displays the program code of the debugged script and the line containing the Stop statement is marked with a yellow color.Ħ. If there are multiple debuggers installed on the computer, a dialog box is displayed that prompts you to choose the preferred debugger from a list.įor the purpose of this example, choose Microsoft Script Debuggerĥ.

When the Stop statement is executed, the debugger should be invoked. Place a Button component on a visualization window and link it to the above script.Ĥ. In the Reliance Design development environment, create a new project and a new script with the following program code:Ģ.
MISCROSOFT SCRIPT DEBUGGER HOW TO
The following instructions show how to debug a script on a practical example.ġ.
MISCROSOFT SCRIPT DEBUGGER INSTALL
You can install both debuggers and decide which one to use just before the actual debugging. If you want a more comfortable and powerful debugger, you can use Visual Studio Community, which is free of charge for non-commercial purposes. A very simple one is Microsoft Script Debugger, which is available to download from the Microsoft's website. To debug scripts, a Just-In-Time debugger is required. How to debug Reliance scripts with an external debugger
