When fixing an unhandled error from the telemetry dashboard, the issue typically contains an error message, a stack trace, hit count, and affected user count.
The error manifests at a specific line in the stack trace, but the fix almost never belongs there. Fixing at the crash site (e.g., adding a typeof guard in a revive() function, swallowing the error with a try/catch, or returning a fallback value) only masks the real problem. The invalid data still flows through the system and will cause failures elsewhere.
Read each frame in the stack trace from bottom to top. For each frame, understand:
Рекомендации по исправлению необработанных ошибок на панели телеметрии ошибок VS Code. Используйте при исследовании проблем телеметрии ошибок с помощью трассировок стека, сообщений об ошибках и количества обращений/пользователей. Охватывает отслеживание потока данных через стеки вызовов, идентификацию производителей недопустимых данных и потребителей, которые выходят из строя, обогащение сообщений об ошибках для диагностики телеметрии и избежание распространенных антишаблонов, таких как молчаливое проглатывание ошибок. Источник: microsoft/vscode.