Write a debugging guide for a Scala stack overflow issue in a {{tone}} tone for {{target_audience}}. The bug severity is {{severity}} and the environment is {{environment}}. Use a systematic methodology: isolate, gather evidence, root cause, fix, prevent. Include:
- Bug Report Template: expected vs actual behavior, reproduction steps, environment details, error messages.
- Diagnostic Process: 5 steps (isolate, gather evidence, root cause analysis, implement fix, prevent recurrence).
- Top 10 Common Pitfalls: each with mistake pattern, why, correct approach, detection method.
Maximum 1800 words. Use plain language. All recommendations specific to Scala stack overflow. Skip sections if information is unknown.