debug UI Action script

rajeshjain
Tera Expert

Hi , Is it possible to check what is wrong in Ui script ,Is there anyway to debug it or any command which write the details ( incorrect command ) in javascript log

11 REPLIES 11

German Alvarez2
Tera Expert

Hi,



If the UI Action will run in the server, you can use gs.log("") in order to write in the log. Also, if you enable "Debug Log" module, you will be the messages in the bottom of the screen while they are being generated.



If the UI Action will be in the Client Side, you can do an alert() command, or, you can try with console.log() and to see the messages in the Browser Developer Tools.



Best Regards


you can check the code using



ctrl+shift+Alt+j      




you will get one editor


Wade Clairmont
Tera Guru

You can always use Scripts - background (only available with elevated security admin privileges)



Generate your code in there to test, using gs.print to display results.   Note that this is segregated so you cannot use "current."


I agree with Wade, This is something I always do when trying to figure out how to do the code.



//Göran