Skill
Community

console-debugging

Install
1
Install the plugin
$
npx claudepluginhub jpoutrin/product-forge --plugin product-design

Want just this skill?

Then install: npx claudepluginhub u/[userId]/[slug]

Description

Use when debugging JavaScript errors, checking console warnings, analyzing browser logs, finding runtime errors, investigating console output, or troubleshooting browser issues. Provides console message analysis.

Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Console Debugging Skill

Systematic approach to analyzing browser console messages using Chrome DevTools MCP.

Console Message Categories

Error Messages (Highest Priority)

TypeExampleTypical Cause
JavaScript ErrorUncaught TypeError: Cannot read property 'x' of undefinedNull reference
Network ErrorFailed to load resource: net::ERR_CONNECTION_REFUSEDAPI unavailable
CORS ErrorAccess-Control-Allow-OriginBackend configuration
CSP ErrorContent Security PolicySecurity restriction
Syntax ErrorSyntaxError: Unexpected tokenInvalid JavaScript
Reference ErrorReferenceError: x is not definedUndefined variable

Warning Messages (Medium Priority)

TypeExampleAction
Deprecation'componentWillMount' is deprecatedPlan migration
PerformanceLong task took 200msOptimize
SecurityInsecure form submissionFix HTTPS
Mixed ContentMixed Content: loading HTTP on HTTPSUpdate resource URLs

Info/Log Messages (Context)

TypePurpose
Debug outputDeveloper console.log statements
Library infoFramework initialization messages
AnalyticsTracking events
State changesApplication state updates

Analysis Workflow

1. Collect Console Messages

Use Chrome DevTools MCP to list all console messages:

Tool: mcp__chrome-devtools__list_console_messages
Parameters: { "level": "error" }  // or "warning", "info", "debug"

2. Filter by Severity

Start with errors, then warnings:

  1. Errors first - These break functionality
  2. Warnings second - These indicate problems
  3. Info last - These provide context

3. Group by Source

Categorize errors by their origin:

  • Application code - Your own JavaScript
  • Third-party libraries - External dependencies
  • Browser/extension - Not your code
  • Network - API/resource failures

4. Stack Trace Analysis

For JavaScript errors, analyze the stack trace:

Error: Cannot read property 'id' of undefined
    at UserComponent.render (UserComponent.js:45)
    at processChild (react-dom.js:1234)
    at reconcileChildren (react-dom.js:5678)
  • First line: Error type and message
  • Second line: Where error occurred (your code)
  • Following lines: Call stack (often framework code)

5. Timing Correlation

Note when errors occur:

  • On page load?
  • After user action?
  • After API response?
  • Periodically (interval/timeout)?

Common JavaScript Errors Reference

TypeError

ErrorCauseFix
Cannot read property 'x' of undefinedAccessing property on undefinedAdd null check
Cannot read property 'x' of nullAccessing property on nullAdd null check
x is not a functionCalling non-function as functionCheck variable type
Cannot set property 'x' of undefinedSetting property on undefinedInitialize object first

ReferenceError

ErrorCauseFix
x is not definedUsing undefined variableDeclare variable or check spelling
Cannot access 'x' before initializationTemporal dead zone (let/const)Move declaration above usage

SyntaxError

ErrorCauseFix
Unexpected tokenInvalid syntaxCheck for missing brackets/quotes
Unexpected identifierMissing operator or keywordReview line for typos

NetworkError

ErrorCauseFix
net::ERR_CONNECTION_REFUSEDServer not runningStart server or check URL
net::ERR_NAME_NOT_RESOLVEDDNS failureCheck domain spelling
net::ERR_CERT_AUTHORITY_INVALIDSSL certificate issueFix certificate or bypass in dev

Error Prioritization Matrix

SeverityImpactAction Required
CriticalApp crashes, data lossImmediate fix
HighFeature brokenFix before release
MediumDegraded experienceFix in next sprint
LowCosmetic issueTrack for later

Debugging Report Template

## Console Debugging Report

**URL**: [page URL]
**Date**: [timestamp]
**Browser**: [browser version]

### Summary

- Total Errors: X
- Total Warnings: Y
- Critical Issues: Z

### Critical Errors

| Error | Location | Frequency | Impact |
|-------|----------|-----------|--------|
| [error message] | [file:line] | [count] | [description] |

### Stack Trace Analysis

#### Error 1: [title]

**Message**: [full error message]

**Stack Trace**:

[stack trace]


**Root Cause**: [analysis]

**Suggested Fix**: [recommendation]

### Warnings to Address

| Warning | Source | Recommendation |
|---------|--------|----------------|
| [warning] | [source] | [action] |

### Next Steps

1. [prioritized action 1]
2. [prioritized action 2]

Integration with Network Inspection

Console errors often correlate with network issues:

  1. Failed API call -> Console shows error about missing data
  2. CORS blocked -> Console shows CORS error + network 0 status
  3. JSON parse error -> Network returned invalid JSON

Use network-inspection skill alongside for comprehensive debugging.

Best Practices

  1. Reproduce consistently - Ensure error can be triggered reliably
  2. Document exact steps - Note what user action causes the error
  3. Capture timestamps - When did the error first appear?
  4. Check multiple browsers - Is it browser-specific?
  5. Review recent changes - What changed before error started?
Stats
Stars7
Forks0
Last CommitFeb 3, 2026

Similar Skills