DebugR Chrome 插件, crx 扩展下载

 收录于6年前 阅读数 4

扩展ID: odgodmleeenojpjigkkbicijhpplolmm

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>
名称 DebugR
插件标识 odgodmleeenojpjigkkbicijhpplolmm
平台 Chrome
评分 0
评分人数 0
插件主页

作者 Bob Fanger
版本号 1.3
大小 665 KB
官网下载次数 29
分类 查看更多 web开发 分类下的扩展插件
下载地址
更新时间 2018-05-16 00:00:00
举报
回复

相关推荐

大家在找这些插件

相关搜索词