Debug Catalog Client Script in Service Portal

raprohaska
Kilo Guru

I've always prided myself on finding ways to debug code. Thanks to Developer Tools within modern browsers, I can usually find a way to debug client script. We have started using Service Portal and I'm dumbfounded. I cannot find the client script in any of the downloaded JavaScript files. I can find the client script for widgets but I'm thinking form based scripts must be stored in a variable or something and invoked dynamically.

Has anyone been able to step through client code in for client scripts associated to forms or catalog items when loaded in Service Portal widget?  

1 ACCEPTED SOLUTION

This question was specific to Service Portal. It is a little more complicated but I figured it out. The client scripts are not rendered directly in the page, so you can't just go to a file in the source tree. I was able to step through the code and find where it invokes the dynamic script. This was at least the way I found to do it, maybe I'm missing an easier way.




SP Client Script 1.png



SP Client Script 2.png


View solution in original post

3 REPLIES 3

Rajesh Mushke
Mega Sage
Mega Sage

Hey Aron,



Please refer below blog post, Might be helpful to you:


Using Chrome to Debug Client Side Errors




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

This question was specific to Service Portal. It is a little more complicated but I figured it out. The client scripts are not rendered directly in the page, so you can't just go to a file in the source tree. I was able to step through the code and find where it invokes the dynamic script. This was at least the way I found to do it, maybe I'm missing an easier way.




SP Client Script 1.png



SP Client Script 2.png


This link is not working ,can you paste a new one?