To debug a CQ HTML client library in the AEM author instance, you need to add the query parameter
debugClientLibs set to true. This parameter instructs AEM to include additional debugging
information for client libraries, making it easier to troubleshoot issues with JavaScript, CSS, and other
assets.
Steps to enable client library debugging:
Open the AEM Page: Navigate to the AEM page where you want to debug the client libraries.
Append the Query Parameter: Add ?debugClientLibs=true to the URL. For example:
http://localhost:4502/content/we-retail/us/en.html?debugClientLibs=true
Reload the Page: Refresh the browser page. AEM will now include debugging information for client
libraries.
This parameter helps in identifying issues with client library loading, dependencies, and other client-
side resources.
Reference:
Debugging Client Libraries in AEM