Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains the way how to capture the get Javascript console logs and how to debug the issue while it outputs the data.an issue when a macro is not rendering data in a Confluence page.  

Instructions

  1. Open the Chrome browser and log into Confluence instance.
  2. Open the confluence page for which you want to analyze the javascript errors.
  3. Hit the F12 key In the chrome browser.
  4. Developer Tools panel opens on your screen, preferably, log in to Confluence and access the concerned page. 
  5. Depending on the operating system used, choose the appropriate option as follows:
    1. In Mac, select View > Developer > Javascript Console from the Chrome menu bar.
      Image Added
    2. In Windows, press the F12 key to open the Developer Tools panel.
      Image Added
  6. From the Developer Tools panel, select the Network tab. By default, the Developer Tools will load developer tools loads at the bottom of your screen.  
    Image Added
  7. Check Select the Disable Cache option in the Network tab toolbar to prevent caching of resources for this specific page.
  8. Select the Console tab.
  9. Click on the gear icon to open the Console settings.
  10. Check the box next to the Select the Preserve log and Log XMLHttpRequestsXMLHttpRequests options.
  11. Click the Clear console button(Image Modified) to clear out any existing logs from the console.
    Try to Image Added
  12. Now, reproduce the issue that you are experiencing while the console is open.
  13. Once you have reproduced the issue, rightRight-click anywhere in the console area, select Save as, and save the file to your computer to share the log with the Support Team.
    Image RemovedImage Added