debug-log

Insert debug logging statements to trace code execution and variable states.

1|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/nielsmadan/agentic-coding --skill debug-log-nielsmadan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-log
Source: https://github.com/nielsmadan/agentic-coding/tree/main/claude/skills/debug-log
Command: npx skills add https://github.com/nielsmadan/agentic-coding --skill debug-log-nielsmadan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers pinpoint and resolve bugs by adding targeted debug logging statements to their code, making it easier to understand program flow and variable states.

Core Features & Use Cases

  • Code Tracing: Insert logs at critical points like function entry/exit, before/after async operations, and within conditionals.
  • Language Agnostic: Supports common languages like JavaScript/TypeScript, Python, and Go, with a pattern for others.
  • Use Case: When a web application's authentication flow is failing intermittently, use this Skill to add detailed logs to the login, token validation, and session creation functions to identify the exact point of failure.

Quick Start

Add debug logs to trace the authentication flow.

Frequently Asked Questions about debug-log

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

FAQPage Schema
How do I add debug logging to trace code execution in Python and JavaScript?

You can add targeted debug logging statements to trace code execution and variable states across Python, JavaScript, and Go. This helps pinpoint bugs by instrumenting functions, async operations, and conditionals to understand control flow.

What is the best way to troubleshoot intermittent authentication flow failures with logging?

Troubleshooting intermittent failures involves adding detailed debug logs to login, token validation, and session creation functions. This targeted logging approach identifies the exact point of failure by tracing variable states and program flow during execution.

Does this code tracing approach work with async operations and Go?

Yes, code tracing supports async operations and Go. It provides patterns for inserting debug logs before and after asynchronous tasks, helping developers investigate unexpected behavior and understand control flow across multiple programming languages.

Can I use targeted logging to understand control flow within conditionals and loops?

Yes, you can use targeted logging to understand control flow within conditionals and loops. By inserting debug statements at these critical points, you can trace variable states and program execution paths to isolate the exact source of unexpected behavior.

What are the limitations of using debug logs for troubleshooting unexpected code behavior?

The main limitation of using debug logs for troubleshooting is that it requires adherence to a disciplined logging approach for effective problem isolation. Without structured instrumentation of functions and conditionals, the logs may not clearly reveal the exact point of failure.