Item logo image for DebugR

DebugR

ExtensionDeveloper Tools26 users
Item media 1 screenshot

Overview

Receive debugging information alongside XMLHttpRequests.

Server code (example is php, but the extension is language agnostic): <?php if (isset($_SERVER['HTTP_DEBUGR'])) { // Only send headers when DebugR is enabled // Send a message alongside the request. header('DebugR: '.base64_encode('Hello DebugR')); // Append a unique label to send multiple messages. header('DebugR-my-first-label: '.base64_encode('Moarr information')); } ?> Client via javascript: window.addEventListener('message', function (e) { if (e.data.debugR) { console.log(e.data); } }, false); document.documentElement.setAttribute('data-debugR'); // Signal the extension that the eventlistener is active. Using debugr.js helper: <script src='js/debugr.js'></script> <script> debugR(function (message, details) { console.log(message); }); </script>

0 out of 5No ratings

Google doesn't verify reviews. Learn more about results and reviews.

Details

  • Version
    1.3
  • Updated
    May 16, 2018
  • Offered by
    Bob Fanger
  • Size
    666KiB
  • Languages
    English
  • Developer
    Email
    bfanger@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has not provided any information about the collection or usage of your data.

Support

For help with questions, suggestions, or problems, please open this page on your desktop browser

Google apps