NetXMS Support Forum

English Support => General Support => Topic started by: Anders on August 15, 2012, 03:37:54 PM

Title: Debug and test NXSL code?
Post by: Anders on August 15, 2012, 03:37:54 PM
Hi,

I've found the need to write a transformation script for one of my DCIs, but it doesn't seem like the "Test..." button works to test my syntax (NXMC 1.2.2, tested in both Windows 7 with JRE7u5 Mac 10.8 with JRE6u33).
I have therefor resorted to write the code in a shell and then use the nxscript command to verify my syntax and if the code works. But it doesn't seem like some of the functions works, such as FindObject and GetAvgDCIValue.

Maybe I'm attempting something that isn't even suppose to work?

Thanks!

Anders
Title: Re: Debug and test NXSL code?
Post by: Victor Kirhenshtein on August 15, 2012, 05:08:30 PM
Hi!

It is supposed to work, and it's working from old Windows console, just Java implementation is broken. I'll fix it in Java console.

Best regards,
Victor
Title: Re: Debug and test NXSL code?
Post by: Anders on August 15, 2012, 05:11:50 PM
Thanks again Victor for the quick reply!

Do you think this bug fix might find itself in the next NXMC version?
Title: Re: Debug and test NXSL code?
Post by: Victor Kirhenshtein on August 15, 2012, 05:48:39 PM
I'll try to. It shouldn't be hard to fix, so most important is not to forget about it :) Added to bugtracker: https://www.radensolutions.com/chiliproject/issues/58 (https://www.radensolutions.com/chiliproject/issues/58).

Best regards,
Victor