<< Click to Display Table of Contents >> Navigation: IWCL > IntraWeb Library Loader > Parameters > DebugWait |
Type: Boolean
Default: false
Description:
When enabled (true), the IWCL runtime will pause execution after loading the JavaScript class but before executing the page logic, allowing developers to attach a debugger (e.g., browser DevTools) and set breakpoints in advance.
This is useful during development when you need to debug logic defined in your JavaScript class file (such as Index.js) right before it runs.
Usage Notes:
The application will wait until the browser developer tools are opened and the execution is resumed manually by the developer.
Example usage:
<script src="/IntraWeb.js" data-Source="/Index.iwml" data-DebugWait="true"></script>
With this setting, after loading Index.js, execution will pause automatically. You can then open the DevTools, inspect or modify variables, and step through the logic as needed.