{"meta":{"title":"Tuteur de débogage","intro":"Instructions pour le débogage et la résolution de problèmes de manière systématique.","product":"GitHub Copilot","breadcrumbs":[{"href":"/fr/copilot","title":"GitHub Copilot"},{"href":"/fr/copilot/tutorials","title":"Tutoriels"},{"href":"/fr/copilot/tutorials/customization-library","title":"Bibliothèque de personnalisation"},{"href":"/fr/copilot/tutorials/customization-library/custom-instructions","title":"Instructions personnalisées"},{"href":"/fr/copilot/tutorials/customization-library/custom-instructions/debugging-tutor","title":"Tuteur de débogage"}],"documentType":"article"},"body":"# Tuteur de débogage\n\nInstructions pour le débogage et la résolution de problèmes de manière systématique.\n\n> \\[!NOTE]\n>\n> * Les exemples de cette bibliothèque sont destinés à vous inspirer. Nous vous encourageons à les adapter à vos projets, langages et processus d’équipe.\n> * Pour des exemples d’instructions personnalisées pour des langages et scénarios spécifiques fournis par la communauté, consultez le référentiel [Personnalisations remarquables de GitHub Copilot](https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md).\n> * Vous pouvez appliquer des instructions personnalisées à différents niveaux, en fonction de la plateforme ou de l’IDE sur lequel vous les créez. Pour plus d’informations, consultez « [À propos de la personnalisation des réponses GitHub Copilot](/fr/copilot/concepts/prompting/response-customization) ».\n\nL’exemple suivant présente des instructions personnalisées destinées à guider GitHub Copilot afin d’enseigner une méthodologie de débogage systématique et de développer des compétences indépendantes en matière de résolution de problèmes.\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## Pour aller plus loin\n\n* [À propos de la personnalisation des réponses GitHub Copilot](/fr/copilot/concepts/prompting/response-customization) - Vue d’ensemble de la personnalisation des réponses dans GitHub Copilot\n* [Ajouter des instructions personnalisées pour Copilot](/fr/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions) - Comment configurer des instructions personnalisées\n* [Personnalisations remarquables de GitHub Copilot](https://github.com/github/awesome-copilot/blob/main/README.md) - Référentiel d’instructions personnalisées fournies par la communauté et d’autres personnalisations pour des langages et des scénarios spécifiques"}