Exam AD0-E103 All QuestionsBrowse all questions from this exam
Question 47

A developer creates a custom Client Library named foobar.

This Client Library embeds 5 other Client Libraries and contains 10 JavaScript source files. One of these files, called foo.js, has a bug on line 8 which causes an exception. The Client Library is throwing this exception on line 1350 when it is included on a webpage.

How should a developer find the exact line in foo.js where the exception has been thrown?

    Correct Answer: D

    To identify the exact line in foo.js with the bug, a developer should add the query parameter debugClientLibs=true to the request and then use the browser's JavaScript debugging tools. By doing this, the browser will load unminified versions of the JavaScript files, making it easier to pinpoint the error directly within foo.js using the debugging tools.

Discussion
Medo83Option: D

Correct answer is D.

chunpinOption: D

Answer: D Reference: https://helpx.adobe.com/experience-manager/kb/How-to-debug-javascript-errors-in-AEM.html