MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / debugString

Function debugString

front_end/ui/visual_logging/Debugging.ts:413–428  ·  view source on GitHub ↗
(config: LoggingConfig)

Source from the content-addressed store, hash-verified

411}
412
413export function debugString(config: LoggingConfig): string {
414 const components = [VisualElements[config.ve]];
415 if (config.context) {
416 components.push(`context: ${config.context}`);
417 }
418 if (config.parent) {
419 components.push(`parent: ${config.parent}`);
420 }
421 if (config.track) {
422 components.push(`track: ${
423 Object.entries(config.track)
424 .map(([key, value]) => `${key}${typeof value === 'string' ? `: ${value}` : ''}`)
425 .join(', ')}`);
426 }
427 return components.join('; ');
428}
429
430const veDebugEventsLog: Array<IntuitiveLogEntry|AdHocAnalysisLogEntry|TestLogEntry> = [];
431

Callers 1

Calls 4

pushMethod · 0.45
joinMethod · 0.45
mapMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected