— No reviews yet
0 installs
4 views
0.0% view→install
Install
$ agentstack add skill-caraya-agent-skills-javascript-debugging ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Javascript Debugging? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
JavaScript Debugging
Use When
- Debugging Node.js or browser runtime errors.
- Investigating event loop stalls or performance hangs.
- Analyzing memory leaks or heap growth.
- Tracking async control flow issues and callback chains.
Setup and Tools
- Node.js inspection
- Start with
node --inspect app.jsornode --inspect-brkfor immediate pause. - Connect via
chrome://inspector VS Code Debugger. - Use
--max-old-space-sizeif debugging memory-heavy workloads.
- Chrome DevTools (browser or Node)
- Sources tab: Set breakpoints, step, watch variables.
- Console: Execute code in the current context, inspect objects.
- Performance tab: Record and analyze CPU usage, event loop latency.
- Memory tab: Take heap snapshots, track allocations, detect leaks.
- Profiling
- Use
--profflag:node --prof app.jsthennode --prof-processto analyze. - Or use built-in profiling in Chrome DevTools.
Checklist
- Async and callback issues
- Missing
awaitor.then()chaining silently succeeds but leaves work unfinished. - Unhandled promise rejections crash the process in some Node versions; catch them all.
- Callback arguments (error-first pattern) may be ignored, causing bugs downstream.
- Event loop and stalls
- Long-running synchronous code blocks the event loop; break into setImmediate or chunked work.
- Inspect the event loop using
--trace-eventsor async hooks. - Look for tight loops, deep recursion, or large object allocations in tight paths.
- Memory profiling
- Take heap snapshots before and after a suspected leak scenario.
- Use Chrome DevTools "Allocation timeline" to track where memory is allocated.
- Look for detached DOM nodes, retained closures, or circular references.
- Module and timing issues
- Check module loading order; require() side effects may execute unexpectedly.
- Watch for race conditions in concurrent operations (Promise.all, setTimeout timing).
- Verify require cache is not causing stale module state.
Output Requirements
For each finding provide:
- Issue description
- Evidence (stack trace, memory profile, timing trace)
- Steps to reproduce with debugger
- Root cause hypothesis
- Fix strategy
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caraya
- Source: caraya/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.