// Sources panel: right-click line number
// Conditional: user.id === 42
// Log point: console.log('user', user) — 매 코드 수정 X
2. debugger keyword + dynamic
functionprocess(items){if(items.length>1000)debugger;// pause when large
// ...
}
3. console.* advanced
console.table(users);console.group('render');console.time('paint');// ...
console.timeEnd('paint');console.groupEnd();console.dir(node);// DOM as JS object
console.trace();console.count('clicked');
4. Performance.measure (User Timing)
performance.mark('fetch-start');awaitfetch('/api/x');performance.mark('fetch-end');performance.measure('fetch','fetch-start','fetch-end');// shows in DevTools Performance + reportable to RUM
# Verify upload
curl -I https://cdn.example.com/main.js.map
# In DevTools, check status: open Sources, file should show formatted code# If "missing source map", check //# sourceMappingURL comment + CORS
9. React DevTools Profiler
- Components tab — inspect props, hooks, set Suspense state.
- Profiler tab — record interaction, view "Why did this render?" (commit reason).
- Highlight updates when components render: settings cog → "Highlight updates".
10. Chrome AI assistance (2024-)
- DevTools Console → "Ask AI" (Gemini Nano integration).
- "Why is this CSS not applying?" — pastes computed styles into prompt.
- Performance Insights — auto-flagged INP / CLS culprits.