How to debug Client Callable Script Include when we call it in Report?

abhi710
Tera Contributor
 
16 REPLIES 16

Weird
Mega Sage

Since it's a script include you can just log it like you would any other server script if you add gs.info(); into it.

For example:
var something = something else;

gs.info("Script include X: " + something);

Then in check the logs to see what was logged.

abhi710
Tera Contributor

Tried but not getting any logs.

How do you call the script include?
It would have to look a bit like this:

javascript:new IncludeName().functionName() 

 For example your filter could look like "sys id is javascript:new IncludeName().functionName()"


EDIT:
Also, are you using a scoped application?

Also, if my text shows &colon ; then that's some kind of formatter issue. It should be :

abhi710
Tera Contributor

No, it is a global application.