cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

How to debug a browser page by modifying adrum.js

Users can debug a browser page with EUM instrumented pages using the JavaScript agent (adrum.js).

 

  1. Within the Google Chrome browser, launch developer tools (ALT+CMD+I) by clicking on View > Developer > Developer Tools in the browser toolbar.
  2. Add the string ?ADRUM_debug=true to your webpage's URL and hit enter.

Example:  http://URL/page/?ADRUM_debug=true

 

Note: if there is an anchor (#) in the URL, add the above parameter string before the anchor.  

 

Example: http://URL/page/?ADRUM_debug=true#afterAnchor

 

  3. In the browser window, generate load on your web application virtual pages.

 

Note: The easiest way to generate load is by clicking the various links within the browser window which point to the different virtual page(s). This allows for the adrum.js JavaScript agent to capture data.

 

  4. Once a load has been generated on the application, type the following into the Javascript console: ADRUM.dumpLog()

 *for v4.2.x and earlier try, ADRUM.logMessages.join("\n")

 

output.png

 

 

Users can then view their Javascript logs in the console and use for debugging purposes (if needed).

 

Related Links:

Version history
Last update:
‎10-05-2018 01:07 PM
Updated by:
Labels (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos