- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2019 01:49 AM
Hi,
While trying to debug the business rules script the script debugger is not responding.
I have placed the code in business rules > script pane. The condition is placed to trigger business rule is implemented 'after database Insert' on 'live_message'.
Since last successful update of Madrid. Debugger is not working properly. Breakpoints are not able to pause the flow of execution.
Kindly help.
Regards
aj
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2020 01:18 PM
I have a script include in a scoped app that I used to be able to step through in the debugger and now the Debugger just sits at Status: WAITING_FOR_FIRST_BREAKPOINT user: System Administrator.
I read in Doc's that it will work if isInteractive() is true
var interActive = gs.getSession().isInteractive();
gs.info(interActive);
When I run this in scripts background, it says false. I know I used to be able to call this and step through, any suggestions or ideas?
Just created this test in a scoped app:
created basic script include and set accessible from "all application scopes"
name: test
script:
function test() {
return 'hello world';
}
// called from scripts backgroun in the same scope
gs.info(test()); // hello world
launched script debugger from the script include, added break point and it never stops at breakpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 12:25 AM
I am also facing similar issue.
Any suggestion on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 09:51 AM
I'm having the same exact issue as everyone else in this thread. The code works, but the debugger does not. Breakpoints are set, though the debugger shows a status of "WAITING_FOR_FIRST_BREAKPOINT" no matter how frequently I trigger the script in question.
This is on my PDI, but the issue exists in our real environments, too. I've spent hours trying to determine why it's not working, but I'm no closer than when I started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 10:00 AM
Hey
Somewhere I read that script debugger do not work for async calls, in my case breakpoint is in ScriptInclude and I was calling the scirpt include via a GlideAjax.
I hope this helps us.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 12:28 PM
Ahh, yeah, that's my issue then - I was in the same boat. Good to know. I appreciate it
I did a bit of reading and one of the alternatives for troubleshooting Script Includes is to use the following keyboard shortcut:
Ctrl + Alt + Shift + J
This will open a small modal window which allows you to call and view the output of your Script Include. Everything logged will show up in the browser's console.
Note: this will not allow you to use the `gs` object, so you'll have to replace any `gs.print()` calls with `console.log()`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2022 12:38 AM
Great Thanks
I appreciate your suggestion.
Regards,
Afsar Sheikh