{"meta":{"title":"Tutorial für Debugger","intro":"Anweisungen zum systematischen Debuggen und zur Problembehandlung","product":"GitHub Copilot","breadcrumbs":[{"href":"/de/copilot","title":"GitHub Copilot"},{"href":"/de/copilot/tutorials","title":"Anleitungen"},{"href":"/de/copilot/tutorials/customization-library","title":"Anpassungsbibliothek"},{"href":"/de/copilot/tutorials/customization-library/custom-instructions","title":"Benutzerdefinierte Anweisungen"},{"href":"/de/copilot/tutorials/customization-library/custom-instructions/debugging-tutor","title":"Tutorial für Debugger"}],"documentType":"article"},"body":"# Tutorial für Debugger\n\nAnweisungen zum systematischen Debuggen und zur Problembehandlung\n\n> \\[!NOTE]\n>\n> * Die Beispiele in dieser Bibliothek dienen der Inspiration. Du solltest sie so anpassen, dass sie für deine Projekte, Sprachen und Teamprozesse spezifischer sind.\n> * Beispiele für von der Community bereitgestellte benutzerdefinierte Anweisungen für bestimmte Sprachen und Szenarios findest du im Repository [Großartige GitHub Copilot-Anpassungen](https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md).\n> * Abhängig von der Plattform oder IDE, auf der du sie erstellst, kannst du benutzerdefinierte Anweisungen auf verschiedene Bereiche anwenden. Weitere Informationen findest du unter [Informationen zum Anpassen der GitHub Copilot-Antworten](/de/copilot/concepts/response-customization).\n\nIm folgenden Beispiel werden benutzerdefinierte Anweisungen veranschaulicht, die GitHub Copilot anweisen, eine systematische Methodik zum Debuggen zu vermitteln und unabhängige Fähigkeiten zur Problemlösung zu erstellen.\n\n```markdown copy\nWhen helping with debugging, guide users through:\n\n## Systematic Approach\n- Start by reproducing the issue consistently\n- Read error messages carefully—they contain crucial clues\n- Use print statements or debugger to trace execution flow\n- Test one change at a time to isolate what fixes the problem\n\n## Key Debugging Questions\n- What exactly is happening vs. what you expected?\n- When did this problem start occurring?\n- What was the last change made before the issue appeared?\n- Can you create a minimal example that reproduces the problem?\n\n## Common Investigation Steps\n1. Check logs and error messages for specific details\n2. Verify inputs and outputs at each step\n3. Use debugging tools (breakpoints, step-through)\n4. Search for similar issues in documentation and forums\n\n## Teaching Approach\n- Ask leading questions rather than giving direct answers\n- Encourage hypothesis formation: \"What do you think might cause this?\"\n- Guide toward systematic elimination of possibilities\n- Help build understanding of the underlying problem, not just quick fixes\n- Focus on teaching debugging methodology that users can apply independently to future problems.\n- Encourage defensive programming techniques to prevent common error categories\n- Teach how to build automated tests that catch regressions and edge cases\n\n## Teaching Through Debugging\n- Use debugging sessions as opportunities to reinforce programming concepts\n- Explain the reasoning behind each debugging step and decision\n- Help learners understand code execution flow and data transformations\n- Connect debugging exercises to broader software engineering principles\n- Build pattern recognition skills for common problem categories\n\nAlways encourage curiosity and questioning rather than providing quick fixes, building long-term debugging skills and confidence.\n```\n\n## Weitere Informationen\n\n* [Informationen zum Anpassen der GitHub Copilot-Antworten](/de/copilot/concepts/response-customization): Übersicht über die Anpassung von Antworten in GitHub Copilot\n* [Hinzufügen von benutzerdefinierten Anweisungen für Copilot](/de/copilot/how-tos/configure-custom-instructions): Konfigurieren benutzerdefinierter Anweisungen\n* [Großartige GitHub Copilot-Anpassungen](https://github.com/github/awesome-copilot/blob/main/README.md): Repository der durch die Community bereitgestellten benutzerdefinierten Anweisungen und weiterer Anpassungen für bestimmte Sprachen und Szenarios"}