Debugging Guide
Use the smallest failing case first.
Triage Order
tython format <file>tython lint <file>uv run python -m pytest -m smokeuv run python -m pytest -m loweringuv run python -m pytest -m differential
If Parse Fails
- Check syntax against
docs/language/*.md. - Check the diagnostic code in
docs/reference/error-codes.md. - Reduce to one function, one block, one expression.
If Semantics Fail
- Confirm declaration order.
- Confirm names follow casing rules.
- Confirm return types and throws clauses match use sites.
If LSP Seems Wrong
- Restart server.
- Check
TYTHON_LSP_LOG. - Reproduce with
tython lsp startin terminal before editor debugging.