DebugR
概述
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 星(5 星制)无评分
详情
- 版本1.3
- 上次更新日期2018年5月16日
- 提供方Bob Fanger
- 大小666KiB
- 语言English
- 开发者
邮箱
bfanger@gmail.com - 非交易者该开发者尚未将自己标识为交易者。欧盟地区消费者须知:消费者权利可能不适用于您与该开发者达成的合约。
隐私权
支持
若有任何疑问、建议或问题,请在桌面浏览器中打开此页面