Use the Configure SourceGen Debugging… menu item to select components and specify an output directory to place a debug script generated by the UI Designer. A script is generated for the selected components' sourceGen elements in addition to any elements with the debug="true" attribute.