debugging

Diagnose and fix debugging issues in Nx-based Node.js monorepos.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill debugging-jacobley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/JacobLey/leyman/tree/main/.claude/skills/debugging
Command: npx skills add https://github.com/JacobLey/leyman --skill debugging-jacobley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps engineers quickly identify and resolve debugging issues across Nx-based Node.js monorepos, covering source maps, caching, and test failures.

Core Features & Use Cases

  • Source map troubleshooting and enabled stack traces for TS code in production-like environments.
  • Bypass Nx cache to ensure fresh results during debugging sessions.
  • Verbose output and detailed logs to locate failures faster.
  • Inspect and understand target configurations with nx show project to validate setup.
  • Debugging tests, builds, and coverage across multiple projects within the monorepo.
  • DevContainer compatibility for consistent tooling and environment.

Quick Start

Enable source maps, run a targeted test, and review logs to start diagnosing issues in your Nx workspace.

Frequently Asked Questions about debugging

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

FAQPage Schema
How do I fix source map errors in an Nx-based Node.js monorepo?

To fix source map errors in an Nx monorepo, you need to enable source maps for your TypeScript code. This ensures accurate stack traces in production-like environments and provides actionable guidance for diagnosing issues.

Why does my Nx cache return stale results during debugging?

Nx cache returns stale results because it stores previous build and test outputs. You can bypass the Nx cache to ensure fresh results and use verbose output to locate failures faster during your debugging session.

How do I debug test failures across multiple projects in an Nx workspace?

Debug test failures across multiple projects in an Nx workspace by running targeted tests with verbose output enabled. Reviewing detailed logs allows you to quickly locate failures and inspect target configurations with nx show project.

Can I use a DevContainer for debugging Node.js monorepo builds?

Yes, you can use a DevContainer for debugging Node.js monorepo builds. DevContainer compatibility provides consistent tooling and environment setup, ensuring reliable debugging of tests and builds across your workspace.

What is the best way to inspect Nx target configurations to validate setup?

The best way to inspect Nx target configurations is using the nx show project command. This validates your setup and helps diagnose issues by providing detailed insights into how your projects are configured.

How do I get detailed logs to locate build failures faster in Node.js?

To get detailed logs and locate build failures faster in Node.js, enable verbose output during your debugging sessions. This approach helps identify issues quickly without being hindered by cached results.