Introducing Script Debugging
finPOWER Connect version 3.04.03 introduces support for debugging scripts.
This is very useful to delve into script code whilst it is running, and then, for example, trace code and examine variables.
You can debug any object in finPOWER Connect that supports scripting. This includes:
- Account Application Types
- Decision Cards
- Page Sets
- Report Templates
- Workflow Types
In addition, if the script includes a Function Library, the code for that Function Library is part of the code being debugged.
To turn on debugging, go to Tools, User Preferences, Developer group, General page and check "Enable Debugger facility?".
Next, add finBL.DebugLaunch() to the script code where you want to open the debugger.
When the script code is run, and a finBL.DebugLaunch() function is encountered the Debugger will open.
Within the debugger, the script code will be opened and paused at the finBL.DebugLaunch() line.
The short video below shows the debugger stopping, the User setting a breakpoint, then continuing the code to enter parameters. The debugger then stops at the breakpoint set previously, where variables are inspected.