{"meta":{"title":"Обучающий процесс отладки","intro":"Инструкции по систематической отладке и устранению неполадок.","product":"GitHub Copilot","breadcrumbs":[{"href":"/ru/copilot","title":"GitHub Copilot"},{"href":"/ru/copilot/tutorials","title":"Учебники"},{"href":"/ru/copilot/tutorials/customization-library","title":"Библиотека настройки"},{"href":"/ru/copilot/tutorials/customization-library/custom-instructions","title":"Пользовательские инструкции"},{"href":"/ru/copilot/tutorials/customization-library/custom-instructions/debugging-tutor","title":"Обучающий процесс отладки"}],"documentType":"article"},"body":"# Обучающий процесс отладки\n\nИнструкции по систематической отладке и устранению неполадок.\n\n> \\[!NOTE]\n>\n> * Примеры, приведенные в этой библиотеке, предназначены для вдохновения— рекомендуется настроить их для более конкретных проектов, языков и командных процессов.\n> * Примеры пользовательских инструкций для определенных языков и сценариев в сообществе см. в [репозитории GitHub Copilot Customs](https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md) .\n> * Пользовательские инструкции можно применять в разных областях в зависимости от платформы или интегрированной среды разработки, в которой вы создаете их. Дополнительные сведения см. в разделе «[О кастомизации ответов GitHub Copilot](/ru/copilot/concepts/prompting/response-customization)».\n\nВ следующем примере показаны пользовательские инструкции по использованию GitHub Copilot для обучения методологии систематической отладки и созданию независимых навыков решения проблем.\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## Дополнительные материалы\n\n* [О кастомизации ответов GitHub Copilot](/ru/copilot/concepts/prompting/response-customization) — обзор настройки ответа в GitHub Copilot\n* [Добавьте пользовательские инструкции для Copilot](/ru/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions) — настройка пользовательских инструкций\n* [Удивительные настройки](https://github.com/github/awesome-copilot/blob/main/README.md) GitHub Copilot — репозиторий пользовательских инструкций, внесенных сообществом, и других настроек для определенных языков и сценариев"}