1
votes

I have got the new 9.0.0 Domino SSJS debugger to work on my Xpages. However, I have a CC inside of an Xpage, and in that CC I have SSJS resource library where I do all my validation.

I can invoke the debugger in any SSJS code EXCEPT in code in the library. It seems the thread just gets "suspended."

OK to clarify. I am trying to debug SSJS in an external library.

The problem is when I get to the 2nd line of code below the debugger seems to no longer be responsive.

The dspDocUNID field is a computed field set to the docUNID (or 0 if a new doc) and I have the attribute display:none on it.

When I run this without debug it runs correctly. When I run it in debug it does not.

    control2 = getComponent("dspDocUNID");
    val2 = control2.getValue();  
1
Misunderstood your question, deleted my unrelated answer... - Serdar Basegmez

1 Answers

3
votes

Is the getComponent() code in the SSJS Script Library? getComponent doesn't work in a Script Library as far as I know - it doesn't have a context to navigate the component tree to find any components. I would expect it to fail without debug and wouldn't be surprised if it hangs in debug.

Does debugging work if you pass the result of getComponent("dspDocUNID") to your function in the SSJS library?