Differences

This shows you the differences between two versions of the page.

Link to this comparison view

72:custom_report_tipsandtricks_debug2 [2019/02/07 13:46]
ext-bkkr created
72:custom_report_tipsandtricks_debug2 [2019/03/06 20:34] (current)
ext-bkkr
Line 1: Line 1:
 ====== Debugging of Data Set Scripts (Dataset Based) ====== ====== Debugging of Data Set Scripts (Dataset Based) ======
 +
 +The following debugging mechanism can be used for Data Set scripts and Data collector scripts even if no Stages Server command line access is available.
 +
 +//​Instructions//​
 +
 +1. Add a results column with the name '​debug'​ to your Data Set
 +
 +2. Add the following javascript function to your Data Set script
 +
 +<​code>​
 +function debug(str) {
 + ​dataset.setColumnValue("​debug",​str);​
 + ​dataset.storeResultRow();​
 +}
 +</​code>​
 +
 +3. Use the function debug("​any kind of information"​) ; in your Data Set script to print your information.
 +
 +This function call will generate a new row in the Data Set output. For production, you have to remove the debugging or you can filter them in the Data Set.