Does the Script Debugger work with Service Portal Widgets Server Scripts?

tmgarcia
Giga Contributor

Coming from Helsinki, I'm just starting to look at the new features in Jakarta (and by virtue of skipping it, Istanbul).

I'm super excited about the shiny new Script Debugger and have already been testing it out with various Script Includes. However, it does not seem to work with Service Portal's Widgets' Server Scripts.

If I view the Widget records through the form view in the backend (not through the sp_config portal editors) I am able to add breakpoints to the Server Script, and these do appear on the left hand side of the Script Debugger window. However, viewing a page containing the widget (and therefore triggering the server script) does not cause the debugger to pause at that breakpoint.

Has anyone else tried this and got it working by chance? Or if it's not currently supported, has there been any word on if/when this support might be added?

1 ACCEPTED SOLUTION

jesseadams
ServiceNow Employee
ServiceNow Employee

Hi Taylor,


It looks like at this time there is no support for service portal widgets in the script debugger. A problem was opened against this a while back in Hi and the development team closed it indicating that there is no support for it at this time.


PRB917879 if you're interested.


View solution in original post

9 REPLIES 9

Script debugger doesn't' work with service portal.



Script debugger



Regards,


Sachin


Right I've read that doc, but it doesn't explicitly mention Service Portal or its widgets regarding either support or lack of it, it only lists a non-extensive list of example script types that can be debugged.



That's partially why, since testing it seems to indicate lack of support, I also wondered if there's been any mention by SNow regarding potential future support. Haven't been able to find any communications myself but hoped reaching out here maybe someone's read something I've missed.


jesseadams
ServiceNow Employee
ServiceNow Employee

Hi Taylor,


It looks like at this time there is no support for service portal widgets in the script debugger. A problem was opened against this a while back in Hi and the development team closed it indicating that there is no support for it at this time.


PRB917879 if you're interested.


Seems I don't have access to open the PRB, but thank you, that gives me the concrete answer I was looking for. I guess from here I'll open an enhancement request and cross my fingers for the future. Having the debugger for other script types will still be a huge time saver in the meantime.



Thanks a bunch Jesse!


John Rausch
Tera Contributor

So my current development method for still using the script debugger when using widgets is to put my server code into a Script Include. then just call the script include in your widgets server code and any break points in your script include should be used.