Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@machiavvelli 

how are you invoking that function and from where?

share some details for it

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

The script includes is being called from an artifact configuration.