Hey ExB custom widget developers.
I was wondering if there is some way to debug message actions being processed through the Framework?
I am building a custom action that selects features in another layer via database relationships, which I have working, however I need this selection to trigger a filter on some associated dataviews (these dataviews have a pre-defined filter on the selection datasource). This part of the process is not working. I have debug in the action code to indicate that the message is being published with a valid selection set but I can't see why the framework is failing to filter the dataviews.
Any suggestions on how to further debug this process?
Thanks
Mark
As far as I know, Experience Builder does not have a built-in debugging feature specifically for custom widgets or message actions. However, developers typically use browser developer tools to debug JavaScript code in web applications.
- Browser Developer Tools
- console.log()
.. but I am guessing you already tried that.
Hey Fred,
Yes, already tried the logging to the console but only get as far as logging the published message (DataRecordsSelectionChange or DataRecordSetChange), can't see what the framework does beyond that.
Alternatively, create a custom widget called "logger" that listens to all actions and events , and dumps to console.log() .. like a spy_widget
Hey again Fred,
The problem with creating custom spy action is that it takes the functionality away from the framework, so I don't believe that will work.
Have you tried the React Developer Tools add-on? It adds some extra panels to your browser console allowing you to directly inspect props and state.