MCPcopy Create free account
hub / github.com/adobe/react-spectrum / debugLog

Function debugLog

packages/dev/style-macro-chrome-plugin/src/devtool.js:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4 // Helper function to log to both DevTools-for-DevTools console and inspected page console
5 const debugLog = () => {
6 // console.log(...arguments); // Logs to DevTools-for-DevTools console
7 // const message = [...arguments].map(arg =>
8 // typeof arg === 'object' ? JSON.stringify(arg) : String(arg)
9 // ).join(' ');
10 // chrome.devtools.inspectedWindow.eval(`console.log('[DevTools]', ${JSON.stringify(message)})`);
11 };
12
13 const backgroundPageConnection = chrome.runtime.connect({name: 'devtools-page'});
14

Callers 4

devtool.jsFile · 0.70
disconnectObserverFunction · 0.70
startObservingFunction · 0.70
updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected