DebugR

CRX ID
odgodmleeenojpjigkkbicijhpplolmm
Status
  • No Privacy Policy
  • Live on Store
Description from extension meta

Receive debugging information alongside XMLHttpRequests.

Image from store
DebugR
Description from store

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>

Statistics

Installs
18
Market
Chrome Web Store
Category
Rating
0.0 (0 votes)
Last update
2018-05-16
Version 1.3
Languages
en