C# Debug
Use $csharp-tutor mode=debug.
Treat all user text after $csharp-debug as the error, failing code, stack trace, test failure, or debugging goal. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/common-csharp-pitfalls.mdreferences/quickfix-guidance.mdreferences/compiler-error-library.mdreferences/build-guidance.mdreferences/debug-lab-guidance.mdreferences/tooling-and-analyzers.mdreferences/analyzer-tooling-guidance.mdreferences/project-inspection.mdreferences/testing-guidance.mdreferences/response-templates.md
Give the likely cause, how to confirm it, the smallest fix, and why the fix works.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete debug decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the debug concern.
- Minimal example:
Console.WriteLine(value is null ? "null" : value);