title: PHP: When using get_template_part to load php partials how to wrap each part with <div>...</div> and toggle this wrapper on/off for debugging purpose
body: <p>Q1. if get_template_part is used to load partials, Is there a way to inject</p>
  <pre><code>&lt;div style=&quot;border: 1px solid blue&quot;&gt; around all partials &lt;/div&gt; 
  </code></pre>
  <p>so I can see the structure of my page and its partials for debugging purposes?</p>
  <p>Q2.I would like to have a toggle that would do that for all partials loaded this way.</p>
  <p>Q3.Eventually I would like to provide different border/backgroupd collors for partials loaded from different folders.</p>
  <p>Q4.It would also be good to output partial names right after initial  wrapper so I can see where it comes from.</p>
  <p>Q5.Even more ideally would be to have a link to a file like:</p>
  <pre><code>file://C://testwordpress/...Theme/partials/Details/myinfo.php
  </code></pre>
  <p>Here is my attempt as suggested by Levi:</p>
  <p>php partial debugging
  <a href="https://raw.githubusercontent.com/radrad/radrad/main/phppartialdebugging1.jpg" rel="nofollow noreferrer">php partial debugging</a></p>
  <p>Thanks</p>