Debugging Script Includes

machiavvelli
Tera Contributor

I am trying to debug a script includes being called by an artifact configuration.

I have inserted a "gs.log" statement at the very beginning of the script includes.

I have inserted a second "gs.log" statement at the very beginning of the first function in the script includes.

The first log statement is running, but the second log statement is not.

What would cause a script includes to run but the first function NOT to run?

How do I troubleshoot such a situation?

Thanks for your assistance.

11 REPLIES 11

Bert_c1
Kilo Patron

Hi,

 

Post your code and folks here can review. Generally, there is some problem in the code and the use of in-valid methods.

Please see attached document.

@machiavvelli 

how are you invoking it?

also use gs.info() and not gs.log()

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

There is a UI Action on the "sp_portal" table named "Request Translation".  The UI action invokes the artifact configuration.  The artifact configuration invokes the script includes.  I changed the log statements to info statements.  Nothing changed.  I still see the first log statement, but not the second one.