My personal website https://leviolson.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
3.0 KiB

4 years ago
4 years ago
  1. <h1 id="betternetworkpanelachromeextension">Better Network Panel - a Chrome extension</h1>
  2. <blockquote>
  3. <p>"As a Salesforce and Vlocity developer, I'm constantly looking for ways to improve my workflow, speed up my debugging, and find answers fast."</p>
  4. </blockquote>
  5. <h2 id="theproblem">THE PROBLEM</h2>
  6. <p>Over the last couple months, part of my debugging process has involved using the Chrome DevTools "Network" panel to find a specific <code>apexremote</code> call. The search to find one <code>apexremote</code> call out of dozens has been… annoying. </p>
  7. <p>The page loads, several dozen <code>apexremote</code> calls flood the panel, and I start clicking each one, until the correct one (i.e. <code>Request-Body</code> contains "xyz") and I can proceed to look at the Preview.</p>
  8. <p>The issue has only just begun, as I need to inspect the <code>Response</code>, perform some searches for <code>ID</code>s and the like, and although the <code>Response</code> is JSON format, the node in the response I need to search is stringified in a child member. So I must copy the data, parse it somehow, either locally on my machine or on the web (jsoneditoronline.org has been great) and finally perform the searching I need.</p>
  9. <p>And all of the above is done several times a day.</p>
  10. <h2 id="thesolution">THE SOLUTION</h2>
  11. <p><a href="https://chrome.google.com/webstore/detail/better-network-panel/kknnkgpbclaljhfcknhbebhppmkmoaml"><img src="/images/bnpscreenshot.png" alt="BNP for Chrome" /></a></p>
  12. <p>I present to you a <a href="https://chrome.google.com/webstore/detail/better-network-panel/kknnkgpbclaljhfcknhbebhppmkmoaml">Better Network Panel</a>. A Chrome extension that adds a new panel, and offers great features like:</p>
  13. <ul>
  14. <li><strong>Full Search</strong> - Entire request is searchable (i.e. headers, postbody, etc…), not just URI</li>
  15. <li><strong>JSON Parsing</strong> - Even nested members that contain stringified JSON are parsed</li>
  16. <li><strong>JSON Search</strong> - Incremental searching is available directly in the Preview pane</li>
  17. <li><strong>Import HAR</strong> - Import your own HAR file and use this tool for debugging</li>
  18. <li><strong>Download HAR</strong> - Export a request as a HAR file and use an external tool for further debugging</li>
  19. <li><strong>Regex Search</strong> - Powerfull regex searches can be performed on the Preview pane</li>
  20. <li>More to come</li>
  21. </ul>
  22. <h2 id="opensourcebaby">Open source baby</h2>
  23. <p>View it on <a href="https://github.com/leothelocust/better-network-chrome-panel">GitHub</a></p>
  24. <h2 id="specialthanks">Special Thanks</h2>
  25. <p>A huge thanks and recognition goes to <a href="https://github.com/milton-lai/saml-chrome-panel">Milton Lai</a> and his project SAML Chrome Panel. I started from a fork of his project, but later started fresh as there was a lot of SAML specific code that this project doesn't use/need. The UI is nearly identical, but the code underneath has become fairly different at this point.</p>
  26. <p>The SAML Chrome Panel was a huge help and ispiration! Thank you Milton and contributors to the SAML Chrome Panel project!</p>