Skip to main content
Mar 21, 2025 11:57 AM UTC
Question

Real-time debug looping in thingworx complier without using loggers

var productionData = [];

for (var i = 0; i < 10; i++) {

productionData.push({

"CurrentIteration": i,

"Value": i + 1             //Change it as per your requirement. Like infotable columns names etc. 

});
}

throw JSON.stringify(productionData);

//For Specific columns and values/items in array use this: "productionData[0].Value"

HrishabhSharma_0-1742558195809.png

 

1 reply

Mar 25, 2025 9:03 AM UTC

Hi Hrishabh.Sharma
 

I just tested your code on ThingWorx 9.6 and it worked fine.

What's the version of your Thingworx server?

Is it possible to export and share the Thing entity file(xml) here?