Debug and test NXSL code?

Started by Anders, August 15, 2012, 03:37:54 PM

Previous topic - Next topic

Anders

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

Victor Kirhenshtein

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

Anders

Thanks again Victor for the quick reply!

Do you think this bug fix might find itself in the next NXMC version?

Victor Kirhenshtein

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.

Best regards,
Victor