Script debugger is not launching from a flow designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 12:07 PM
Hi all,
I am trying to debug a script called from flow action using a script debugger. But the debugger is not launching and showing me any popups when I test my flow action in the flow designer environment. Can someone please assist me in how can I debug the script-include function? Since the function is working fine through the background script and sometimes through the flow designer as well but right now it is failing constantly through the flow designer.
Also when I call the script include function through the background script, a pop-up for the script debugger is showing and the script debugger behaves normally.
TIA,
Shivani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 12:43 PM - edited 08-21-2023 12:46 PM
Hello @Shievanyaa,
My assumption: As Flow runs on events which is asynchronous and doesn't necessarily run by the same worker node where you are logged in, so script debugger doesn't work for flow designer.
You can try to debug them using other methods, such as:
- Adding gs.info(), gs.debug(), or gs.error() statements in your script include function to print messages to the system log or the browser console. You can then view these messages by navigating to System Logs > System Log.
- Adding an Action Output step in your flow action after calling your script include function to display or store the output value of your function. You can then view this value by clicking on the Output tab in the test panel of the flow designer window.
- Adding an Error Handling step in your flow action to catch any errors or exceptions that occur when calling your script include function. You can then view these errors by clicking on the Error tab in the test panel of the flow designer window.
Hope this helps.
Best Regards,
Swarnadeep Nandy