---
title: "How to capture Javascript console logs"
canonical: "https://support.appfire.com/space/SUPPORT/89142159/How%20to%20capture%20Javascript%20console%20logs"
format: markdown
---
<span style="color: #000000">This article explains how to get Javascript console logs and how to debug an issue when a macro is not rendering data in a Confluence page.  </span>

## <span style="color: #000000">Instructions</span>

1. <span style="color: #000000">Open the Chrome browser, preferably, log in to Confluence and access the concerned page. </span>
2. <span style="color: #000000">Depending on the operating system used, choose the appropriate option as follows:</span>
  1. <span style="color: #000000">In Mac, select </span>***<span style="color: #000000">View > Developer > Javascript Console</span>***<span style="color: #000000"> from the Chrome menu bar.</span>
  2. <span style="color: #000000">In Windows, p</span><span style="color: #000000">ress the </span>**<span style="color: #000000">F12</span>**<span style="color: #000000"> key to open the Developer Tools panel.</span>
3. <span style="color: #000000">From the Developer Tools panel, select the </span>*<span style="color: #000000">Network</span>*<span style="color: #000000"> tab. By default, the developer tools loads at the bottom of your screen.  </span>
4. <span style="color: #000000">Select the </span>*<span style="color: #000000">Disable Cache</span>*<span style="color: #000000"> option in the </span>*<span style="color: #000000">Network</span>*<span style="color: #000000"> tab toolbar to prevent caching of resources for this specific page.</span>
5. <span style="color: #000000">Select the </span>*<span style="color: #000000">Console</span>*<span style="color: #000000"> tab.</span>
6. <span style="color: #000000">Click the gear icon to open the Console settings.</span>
7. <span style="color: #000000">Select the </span>*<span style="color: #000000">Preserve log</span>*<span style="color: #000000"> and </span>*<span style="color: #000000">Log XMLHttpRequests </span>*<span style="color: #000000">options.</span>
8. <span style="color: #000000">Click the </span>**<span style="color: #000000">Clear console</span>**<span style="color: #000000"> button(</span>> Macro (inline-media-image)

<span style="color: #000000">) to clear out any existing logs from the console.</span>
9. <span style="color: #000000">Now, reproduce the issue that you are experiencing while the console is open.</span>
10. <span style="color: #000000">Right-click anywhere in the console area, select </span>**<span style="color: #000000">Save as</span>**<span style="color: #000000">, and save the file to your computer to share the log with the Support Team.</span>