Skip to content

Visual Tools ​

Integrated visual debug system for rapid development β€” the "X-ray" that shows how everything works internally.

Debug System

Debug System offers complete visibility into what happens during rendering:

πŸ”§ What It Shows: ​

InformationWhere It AppearsWhen It UpdatesUseful For
Form StateDebug PanelOn every changeSee values in real-time
Schema AppliedSchema InspectorWhen schema changesValidate structure
Component ResolutionComponent TreeOn every renderDebug registry conflicts
Middleware PipelinePipeline TracerPer executionPerformance tuning
Performance MetricsPerformance MonitorContinuouslyOptimization

πŸ“Š Automatic Activation: ​

Development Mode:

text
NODE_ENV=development β†’ Debug Panel active automatically

Manual Override:

text
REACT_APP_DEBUG_schepta=true β†’ Force debug in production

Runtime Toggle:

javascript
window.schepta_DEBUG = true; // Activate debug via console

πŸ’‘ Result: Complete system transparency. Visual debug without configuration!


πŸš€ Debug System Components ​

Each tool has a specific function:

πŸ“Š Debug Panel - Main Panel: ​

SectionContentUpdateInteraction
Form ValuesCurrent field valuesReal-timeRead-only view
Validation StateErrors, touched, dirtyOn validationClick to see details
Schema TreeSchema structureOn schema changeExpandable tree
Component MapResolved componentsOn renderClick to inspect
PerformanceRender timingContinuousHover for details

πŸ” Schema Inspector - Schema Analysis: ​

FeatureVisualizationPurposeNavigation
Schema TreeHierarchical viewSee complete structureExpand/collapse
Property DetailsKey-value pairsSee propertiesClick for details
Validation RulesRule listSee applied rulesHover for description
Component MappingSchema β†’ ComponentSee resolutionClick for component

πŸŽ›οΈ Component Tree - Hierarchy Viewer: ​

InformationDisplayPurposeActions
Component NameTree nodeIdentify component typeClick to inspect
PropsExpandable objectSee current propsEdit in devtools
Registry SourceBadgeSee where component came fromTrace resolution
Render CountCounterPerformance monitoringReset counter

⚑ Performance Monitor - Real-Time Metrics: ​

MetricMeasurementThresholdAlert
Render TimeMilliseconds per render> 16msPerformance warning
Re-render CountCount per interaction> 5Optimization needed
Schema ProcessingTime to process schema> 50msComplex schema warning
Memory UsageComponent memory> 10MBMemory leak warning

βš™οΈ Debug Architecture ​

How the debug system works internally:

πŸ“‹ Debug Pipeline: ​

StageProcessData CollectedStorage
1. Hook InstallationInstall debug hooksComponent lifecycleDebug context
2. Data CollectionCollect render dataProps, state, timingCircular buffer
3. ProcessingProcess collected dataMetrics, relationshipsComputed state
4. VisualizationUpdate debug UICurrent snapshotReact/Vue state
5. InteractionHandle user interactionUser selectionsLocal state

🎯 Data Collection Strategy: ​

Render Tracking:

typescript
const debugData = {
  timestamp: Date.now(),
  component: componentName,
  props: cloneDeep(props),
  schema: cloneDeep(schema),
  renderTime: performance.now() - startTime,
  memoryUsage: getMemoryUsage()
};

Pipeline Tracking:

typescript
const pipelineTrace = {
  middlewareName: middleware.name,
  inputProps: cloneDeep(inputProps),
  outputProps: cloneDeep(outputProps),
  executionTime: executionEnd - executionStart,
  errors: capturedErrors
};

Performance Tracking:

typescript
const performanceMetrics = {
  renderCount: renderCount,
  totalRenderTime: totalTime,
  averageRenderTime: totalTime / renderCount,
  memoryDelta: currentMemory - previousMemory
};

πŸ“Š Debug Features ​

Specific functionalities for each type of problem:

πŸ”§ Form Debug Features: ​

FeaturePurposeData ShownActions Available
Value InspectorSee current valuesReal-time form stateCopy values
Validation TracerDebug validationRules + resultsTest validation
Field MapperSchema to componentField mappingInspect component
Submit TracerDebug form submissionSubmit data flowSimulate submit

🧭 Menu Debug Features: ​

FeaturePurposeData ShownActions Available
Navigation TreeMenu structureHierarchical menuExpand/collapse
Visibility LogicDebug show/hideVisibility expressionsTest conditions
Route MappingMenu to routesURL mappingsNavigate directly
Permission CheckDebug permissionsPermission logicTest with roles

🎨 Component Debug Features: ​

FeaturePurposeData ShownActions Available
Registry InspectorDebug component resolutionResolution chainOverride components
Props TracerDebug props flowMiddleware pipelineTest transformations
Context ViewerDebug contextContext valuesModify context
Render ProfilerDebug performanceRender metricsProfile renders

Debug System is "observability" for all other concepts: