Category / Section
Debugging and Unpacking Custom Widgets in Bold BI
Published:
When working with custom widgets in Bold BI, you may need to debug or access the unpacked version of the widget for further development or troubleshooting. The following steps will guide you through the process of debugging and unpacking a custom widget file (.bicw
).
Unpacking a Custom Widget
To get an unpacked version of a .bicw
file, follow these steps:
- Ensure you have the custom widget
.bicw
file ready. - Rename the
.bicw
file extension to.zip
. This can be done by right-clicking the file and selecting the “rename” option. - Extract the contents of the renamed
.zip
file. After extraction, you will find the script files located under thesrc
folder. - Within the
src
folder, you will find the custom widget-based script namedsourcefile.js
, along with other control scripts.
Debugging a Custom Widget
To debug the custom widget, perform the following:
- Open the
src/sourcefile.js
file and place the debugger statements where you need to troubleshoot the code. - Launch the Bold BI Designer in your web browser.
- Right-click on the browser window and select “Inspect” to open the developer tools.
- In the Bold BI Designer, drag and drop the custom widget onto the design surface.
- The browser’s developer tools will allow you to step through the code, inspect variables, and understand the behavior of the custom widget.
Now we can debug the init and update methods in the custom widget.