temp-debug-logging

Instrument C# code with per-iteration debug logging using File.AppendAllText.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/bhanford9/vs-code-copilot-tools --skill temp-debug-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: temp-debug-logging
Source: https://github.com/bhanford9/vs-code-copilot-tools/tree/main/skills/temp-debug-logging
Command: npx skills add https://github.com/bhanford9/vs-code-copilot-tools --skill temp-debug-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Instrument a C# codebase with exhaustive temporary debug logging to capture runtime behavior across complex, high-iteration execution flows. Output is consumed by a coding agent for diagnosis. Use when investigating a runtime bug, unexpected value, wrong branch, or mysterious behavior in code that runs thousands of iterations.

Core Features & Use Cases

  • Exhaustive per-iteration logging across high-iteration execution paths to reveal subtle issues.
  • Structured metadata including Timestamp, IterationIndex, ThreadId, Phase, CallerMethod, and CorrelationId to tie log entries across components.
  • Logs are designed for agent-driven diagnosis and can be analyzed post-run to reconstruct runtime narratives.
  • Support for a safe, incremental approach that avoids destabilizing production behavior.

Quick Start

Start a debug logging session by reading the LessonsLearned guidance and following the step-by-step plan to enable logging in your codebase.

Frequently Asked Questions about temp-debug-logging

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

FAQPage Schema
How do I add per-iteration debug logging in C# to diagnose high-iteration runtime bugs?

Per-iteration debug logging in C# instruments complex execution paths to capture Timestamp, IterationIndex, ThreadId, Phase, CallerMethod, and CorrelationId for each loop cycle. This structured metadata is written to _debug_logs without external libraries for agent-driven diagnosis.

What is the best way to capture intermediate values during thousands of loop iterations in C#?

Capturing intermediate values during high-iteration loops in C# requires exhaustive temporary logging that records inputs, intermediate states, and outcomes per iteration. A standardized log format using File.AppendAllText safely writes structured runtime data to _debug_logs for post-run analysis.

Can I trace runtime behavior across multiple C# components without adding external logging libraries?

Tracing runtime behavior across C# components without external libraries is possible by using File.AppendAllText to write structured metadata, including CorrelationId and CallerMethod, to _debug_logs. This ties log entries across components to reconstruct runtime narratives for diagnosis.

When do I need exhaustive temporary logging for diagnosing mysterious behavior in C#?

Exhaustive temporary logging is needed when investigating unexpected values, wrong branches, or mysterious behavior in C# code running thousands of iterations. It captures per-iteration runtime details to reveal subtle issues that standard breakpoints or manual inspection cannot easily isolate.

Does adding temporary debug logging to high-iteration code paths destabilize production behavior?

Adding temporary debug logging to high-iteration paths follows a safe, incremental approach designed to avoid destabilizing production behavior. It instruments code paths with structured metadata without external dependencies, ensuring the original execution flow remains intact while capturing diagnostic data.