MCPcopy Index your code
hub / github.com/react/react / debug

Function debug

packages/react-devtools-shared/src/backend/agent.js:39–48  ·  view source on GitHub ↗
(methodName: string, ...args: Array<string>)

Source from the content-addressed store, hash-verified

37} from '../storage';
38
39const debug = (methodName: string, ...args: Array<string>) => {
40 if (__DEBUG__) {
41 console.log(
42 `%cAgent %c${methodName}`,
43 'color: purple; font-weight: bold;',
44 'font-weight: bold;',
45 ...args,
46 );
47 }
48};
49
50type ElementAndRendererID = {
51 id: number,

Callers 1

AgentClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected