Debugging araçları - console, debugger, network, profiling.
name: debugging_tools router_kit: FullStackKit description: Debugging araçları - console, debugger, network, profiling. metadata: skillport: category: quality tags: [architecture, automation, best practices, clean code, coding, collaboration, compliance, debugging, debugging tools, design patterns, development, documentation, efficiency, git, optimization, productivity, programming, project management, quality assurance, refactoring, software engineering, standards, testing, utilities, version control, workflow] - debugging-methodology
Debugging araçları ve teknikleri.
console.log('Value:', value);
console.table(arrayData);
console.group('Section');
console.trace('Stack trace');
console.time('op'); /* ... */ console.timeEnd('op');
function process(data) {
debugger; // Breakpoint
return transform(data);
}
# Node Inspector
node --inspect src/index.js
# chrome://inspect
// Axios interceptor
axios.interceptors.request.use(config => {
console.log('Request:', config);
return config;
});
import pino from 'pino';
const logger = pino({ level: 'info' });
logger.info({ userId }, 'User logged in');
logger.error({ err }, 'Login failed');
Kaynak: OpenTelemetry Documentation & Chrome DevTools Debugging Guide
staging üzerinde tutarlı bir şekilde tekrarlayabilmek için gerekli input'ları belirle.debugger veya IDE breakpoint'leri kullanarak state'in nerede bozulduğunu adım adım (Step-over/Step-into) takip et.| Aşama | Doğrulama |
|---|---|
| 1 | Hata "silinebilir" loglarla mı (console.log) yoksa kalıcı loglarla mı çözüldü? |
| 2 | Trace ID üzerinden tüm request flow'u (Distributed Tracing) takip edilebiliyor mu? |
| 3 | Hata düzeltmesi için bir test senaryosu eklendi mi? |
Debugging Tools v1.5 - With Workflow