Is there a way to find out which control on which form contains a script in sfc-generated-desktop.js? All I can see in the browser debugger is something like “sfcGenerated.onClick3360=function(evt,me)”.
There a few ways to do this, if you know the control on the form you want, and then want to look at the scripts for that.
You can do it this way. Inspect your form in a browser using the Dev Tools and inspect the HTML element for that widget/block. Now look for the data-guid for that element, such as data-guid="464"
Now under sfc-generated-desktop.js you can search on 464 and see all events linked to that element.
If you have a script and you want to trace that to the control, you can do the reverse of the above or if you want to trace to the control in composer use the following line in the browser console
sfcGenerated.getPropertyMap()[xxxx] where xxxx is the number in the code, so for example sfcGenerated.getPropertyMap()
this will then return the uid for that script.
And finally to look at listener events, you can use the command sfcGenerated.getListenerMap() on the console.