Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
72:custom_report_tipsandtricks_debug2 [2019/02/07 13:46] – created ext-bkkr | 72:custom_report_tipsandtricks_debug2 [2019/03/06 20:34] – 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. | ||
+ | |||
+ | // | ||
+ | |||
+ | 1. Add a results column with the name ' | ||
+ | |||
+ | 2. Add the following javascript function to your Data Set script | ||
+ | |||
+ | < | ||
+ | function debug(str) { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 3. Use the function debug(" | ||
+ | |||
+ | 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. | ||