ServiceNow Script Debugger Not Triggering / Breakpoints Not Being Hit

shaikazeez
Tera Contributor

Hi

Hi Everyone

,

I’m facing an issue with the ServiceNow Script Debugger in my instance.

I’m trying to debug a server-side script, but the debugger is not triggering and the breakpoint is not being hit. I have tried multiple times and tested different approaches, but the issue still persists.

The script itself is executing, but I’m unable to debug the execution using Script Debugger.

Could you please help me understand:

  • What could cause Script Debugger not to trigger?
  • Are there any system properties, roles, scope restrictions, or configurations that I should verify?
  • Are there any known limitations regarding debugging scripts from scoped applications?

Any suggestions or troubleshooting steps would be greatly appreciated.

shaikazeez_0-1793774634315.pngshaikazeez_1-1793774670733.png

 

shaikazeez_2-1793774717555.png

 

Thanks in advance!
Azeez.

1 REPLY 1

Kalyani Jangam1
Mega Sage

Hi @shaikazeez 
Below are reason to fail the script debugger

  • gs.log() not supported in scope application this is not issue because you already used gs.info
  • You need to create cross scope privilege record if you call this SI to another scope.  If a script relies on an inaccessible global method, the debugger may step over or fail due to a "Method does not exist" or "Scoped Access Error"
    Please check once second point to fix this issue.