5- Script Editor Usage

Debug Operation

Real-time debugging can be performed for custom scripts and rule scripts.

 The following steps apply for debugging:

  1. In the Sys application, a suitable port is written in the "Debug Server Port" parameter in the Terminal Parameters menu. In case of need, this port should be accessible from the firewall.
  2. The WMSPlatform.Script.Debugger application in the folder where the application is installed is started with administrator rights. It is required to make sure that the process completes without errors.
  3. The Script Editor menu is opened on the Sys application. The custom or rule script to be processed is opened. The "Start Debugging button is clicked on the far right of the toolbar. It is required to make sure that the process starts smoothly on the status bar at the bottom of the screen.
  4. The leftmost empty area of the line where it is requested to stop the flow is clicked in the script text. It is required to make sure that the round icon appears. 
    1. If it works with a custom script, the Android application is entered via the hand terminal. The process continues until the flow is stopped. In the related line, the process will stop and a yellow arrow  will be displayed on the line in the script.
    2. If it works with a rule script, the operation to run the rule is executed. In the related rule line; the process will stop and a yellow arrow  will be displayed on the line in the script.
  5. The values of the variables which are filled in the application can be viewed on the "Variables" panel on the right. The variable name can be written in the top search line to display the value of a single variable.
  6. The process can be proceeded by switching to the next line with the "Proceed to Next Line" button next to the debug button on the toolbar. With the "Proceed button, the script can be executed until the next stop.

  7. The "Stop Debugging" button is clicked on the toolbar to stop debugging.

When you place the cursor over any variable in the script, the value of that variable can be displayed in a pop-up window.