debugging

Diagnose People application errors using console logging and Chrome DevTools.

Updated Nov 18, 2025
One-click install
npx skills add https://github.com/twhitehead-blackdog/People --skill debugging-twhitehead-blackdog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/twhitehead-blackdog/People/tree/main/.agent/skills/debugging
Command: npx skills add https://github.com/twhitehead-blackdog/People --skill debugging-twhitehead-blackdog

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach and practical examples to help you identify, diagnose, and resolve common issues encountered within the People application.

Core Features & Use Cases

  • Structured Logging: Learn to use DiagnosticService for detailed, categorized logging.
  • Browser DevTools: Master the Network, Sources, and Application tabs for real-time inspection.
  • Common Error Resolution: Get solutions for frequent errors like "Cannot read property of undefined" and "Expression has changed after it was checked".
  • Use Case: When a feature in the People app is not behaving as expected, use this Skill to systematically check logs, network requests, and common error patterns to pinpoint the root cause.

Quick Start

Use the debugging skill to understand how to log potential issues using the DiagnosticService.

Frequently Asked Questions about debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix the "Expression has changed after it was checked" error in Angular?

To fix the "Expression has changed after it was checked" Angular error, use structured logging to inspect signal mutations and form states. This approach helps identify the specific lifecycle cycle causing the unwanted change detection update.

Why am I getting "Cannot read property of undefined" in my application?

The "Cannot read property of undefined" error occurs from uninitialized variables or race conditions. Use console logging and browser DevTools to trace route changes and httpResource updates to pinpoint the null reference source.

What's the best way to troubleshoot httpResource updates not reflecting in the UI?

To troubleshoot httpResource updates, use Chrome DevTools Network tab for real-time request inspection and apply categorized DiagnosticService logging to trace signal mutations through the component lifecycle.

How do I debug Angular signal mutations causing unexpected application behavior?

Debug Angular signal mutations by implementing structured logging with DiagnosticService and inspecting real-time state changes in the Chrome DevTools Sources panel to trace the mutation origin.

Can I use Chrome DevTools to diagnose route change issues in the People application?

Yes, you can use Chrome DevTools to diagnose route change issues by inspecting the Application tab for routing state and reviewing categorized console logs from DiagnosticService to trace navigation triggers.

What are the limitations of using console logging for error resolution in Angular?

Console logging for error resolution lacks persistent state history, making it harder to trace complex signal mutation chains over time compared to using dedicated DevTools inspection panels.