VLF-ONE Script Error on Debug with Breakpoint
Posted: Thu Oct 18, 2018 4:37 am
I am trying to debug a complex eventing problem but I keep getting a script error.
I have a "base" command handler extends #VF_AC010O and collects up all the controls on the window and signals a "FieldChanged" event when one of those controls change.
The error references line 143, which is a signal event line. At first I thought it was the FrameworkManager hence the null check. Here is the interesting part.
The location refers to CMGCCPDetailsCommand, but it is ACTUALLY the base command. Line 143 of the CMGCCPDetailsCommand is a Row definition for a layout.
The error DOES NOT happen when running normally.
The error DOES NOT happen when running in debug.
The error DOES happen when running in debug AND a breakpoint is set. The breakpoint does not have to be on that specific line, it could be any line in the base command.
The whole reason I was trying to debug it was to get call stack of when the event "FieldsChanged" event fires. For some reason its firing when it should not be.
Any suggestions or thoughts on what could be going on here?
The error references line 143, which is a signal event line. At first I thought it was the FrameworkManager hence the null check. Here is the interesting part.
The location refers to CMGCCPDetailsCommand, but it is ACTUALLY the base command. Line 143 of the CMGCCPDetailsCommand is a Row definition for a layout.
The error DOES NOT happen when running normally.
The error DOES NOT happen when running in debug.
The error DOES happen when running in debug AND a breakpoint is set. The breakpoint does not have to be on that specific line, it could be any line in the base command.
The whole reason I was trying to debug it was to get call stack of when the event "FieldsChanged" event fires. For some reason its firing when it should not be.
Any suggestions or thoughts on what could be going on here?