Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

5- Script Editör Kullanımı
Hata Ayıklama (Debug) İşlemi

Uyarlama amaçlı yazılan scriptler ve kural scriptleri için gerçek zamanlı hata ayıklama işlemi yapılabilir.

Hata ayıklama işlemi için şu adımlar uygulanır:

...

  1. Eğer bir uyarlama scripti ile çalışılıyorsa, el terminalinden Android uygulamaya giriş yapılır. Akışın durdurulacağı noktaya kadar işlem yapılır. İlgili satıra gelince işlem duracak ve scriptte satırda sarı ok işareti Image Removed gösterilecektir. 
  2. Eğer kural scripti ile çalışılıyorsa, kuralın çalışacağı işlem yürütülür. İlgili kural satırına gelince işlem duracak ve scriptte satırda sarı ok işareti Image Removed gösterilecektir.

...

Scriptte herhangi bir değişkenin üzerine fare ile gelindiğinde, o değişkenin değeri açılan bir pencerede görüntülenebilirEditor 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 DebuggingImage Added 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 Image Added 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 Image Added 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 "ProceedImage Added 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.