The CreatorCon Call for Content is officially open! Get started here.

Script Debugger not Working

aj78
Kilo Contributor

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

1 ACCEPTED SOLUTION

emyrold
Giga Expert

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

View solution in original post

21 REPLIES 21

Was something changed to run asynchronously? Because if something is (as much as possible per best practice) run in async, the script debugger doesn't work on that part anymore.

(Isn't it great to finally have a script debugger only to be phased out after implementing best practices? *sigh*)

sethuvarmap
Tera Contributor

I am facing the same issue and can't able to debug the code using script debugger. Trying to call script include but there is no response.  Did anyone got the solution for this?