Author Topic: Debug and test NXSL code?  (Read 2740 times)

Anders

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Debug and test NXSL code?
« 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

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 7137
    • View Profile
Re: Debug and test NXSL code?
« Reply #1 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

Anders

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: Debug and test NXSL code?
« Reply #2 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?

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 7137
    • View Profile
Re: Debug and test NXSL code?
« Reply #3 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.

Best regards,
Victor