Sitecore Debugger

After successful implementation of the Sitecore project, page performance comes into the picture in the context of page load time, slowness of page, or rendering. There are many tools available online to investigate the website performance like PageSpeed Insights, JMeter, GTmetrix, Lighthouse, etc., but Sitecore provides its own tool for troubleshooting the Sitecore performance issue i.e., Sitecore Debugger.

“If you don’t have a fast website, users will bounce faster you can say. Google recommended page load time is under two seconds, However, speeding up your website is no easy task.”- Google

This tool finds out the problems related to slow rendering, and pipeline time is taken and provides the other details for rendering like data source, parameter, Profile, cache setting, output, etc. The debugger facilitates developers to scrutinize the output of both the rendering and the entire page. So that developer can take care of page performance issues while developing the component and it will not affect the performance of the website in the future.

There are several ways to Open a Page in Debugger:

  1. Sitecore Desktop Icon – by default it will open the home page.
  2. sitecore-debugger-1
  3. Sitecore Experience Editor – Choose a page from the content editor and open it in experience editor mode. Select the debug option under the Home menu in the ribbon bar.
  4. sitecore-debugger-2

Once you open the page in debug mode and scroll down the page you will find some helpful information like where the most time is taken, and the most items read. It’s also useful to find which rendering and pipelines take too much time to load.

sitecore-debugger-3

There are several options available in the Debugger window ribbon bar:

sitecore-debugger-4
  1. Mode: By default, it's set to Debug mode. You can change it to Edit, Preview, and Explore mode as well.
  2. Profile: By default, it's activated. You can disable it by choosing the option Activate. If it’s not selected, then you will not be able to see the profile information on the scroll down of the page. It will give you detailed information about the time taken by action, rendering, and placeholder. You can also download and save the profile information in XML format.
  3. Trace: It is also activated by default. It gives you more information about the Sitecore page generation steps in sequence like pipeline execution. You can also download and save the detailed information for more investigation. Again, you can also disable this option and once you unselect it will not provide you the information after scrolling down the page.
  4. Rendering: It will give you detailed information about the particular rendering in a popup after hovering a mouse on the arrow icon. You can enable or disable this arrow icon by selecting the information checkbox. In the popup, it will give you the information about rendering Details, Profile, Cache Settings, and Output.
  5. sitecore-debugger-5
  6. Open: When this option is selected it will open the ASP.NET application trace in a new window.

When you scroll down the page you find the below options:

  1. Sitecore Profile: It provides the trace summary along with cache usage information.
  2. sitecore-debugger-6
    • Most Time Taken: Indicates three actions that were the longest to execute.
    • Most Items Read: The Most Items Read section shows three actions that caused the biggest number of requests to other items.
    • Profile: The Profile contains the summary of all actions executed during the rendering of the page and the cache hit rate. Below is the explanation of the Profile’s columns:
      1. Time: The percentage of time required to render the entire page required to complete a particular action.
      2. Action: A description of the particular action.
      3. Total: The total execution time in milliseconds.
      4. Own: The execution time of the item itself, not including the renderings triggered by it, in milliseconds.
      5. Items Read: The number of Sitecore items read during the execution of a particular rendering. This information should give a hint why some rendering takes so long to execute or help to detect a non-working query.
      6. Data Cache Misses: Indicates how many times the action was requested and not found in the cache.
      7. Data Cache Hits: Indicates how many times the action was requested and found in the cache.
  3. Sitecore Trace: Sitecore Trace contains detailed information about the actions performed during the page rendering.
  4. sitecore-debugger-7

Happy Sitecoreing ðŸ˜Š

Comments

Popular posts from this blog

Sitecore Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine'

Import CSV Data in Sitecore Using PowerShell: Part-3

Sitecore Technology MVP Journey 2022