- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 03:05 PM
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?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 10:06 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 03:26 PM
They included some nice functionality with service portal where you can use console.log() from the server and then see those in the browser console. You can also right click on the rendered widget and have it log out the scope object or just the data object into the browser console. That being said, gs.log() should be supported in the server script portion of a widget.
documentation/debugging.md at master · service-portal/documentation · GitHub
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 09:34 AM
Oh don't get me wrong I know the current way of "debugging" the server scripts, I was just really hoping to get to join in on this actual debugger functionality.
Being able to pause at a breakpoint and step through each line, seeing the scope values and all would make life so much easier. The current go to of adding console logs, saving, running, moving and shifting prints somewhere else, etc etc isn't just time consuming, it clutters up the version history for the Widget something awful.
And the angular $scope inspection is helpful of course, but the only real peak at the server script you can gain from there is whatever values you dump into the data object, which still doesn't help when it's the execution you're trying to investigate in depth.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 09:07 PM
Hi Taylor,
Adding few more links. hope it will help you.
ServicePortal: Debugging Widget Scripts
Service Portal | Debugging Tips - YouTube
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 09:35 AM
Thanks for the links, but like I replied above, I'm already familiar with the current way of debugging Service Portal Widgets, I just want to know, specifically, if there's support to use the new Script Debugger.