Holiday is over, now I have fun again. No code changes. (0.38.11)
This commit is contained in:
parent
bd2d619cb9
commit
f896e1d3bf
13 changed files with 329 additions and 0 deletions
21
docs/errors-and-diagnostics.md
Normal file
21
docs/errors-and-diagnostics.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Errors and Diagnostics
|
||||
|
||||
This guide helps you understand common error messages and how to collect useful diagnostics.
|
||||
|
||||
## Common error classes
|
||||
- Parse errors: syntax/indentation problems detected before execution.
|
||||
- Name/lookup errors: missing variables, functions, or modules.
|
||||
- Runtime errors: type mismatches, out-of-range access, invalid operations.
|
||||
|
||||
## Enabling diagnostics
|
||||
- Build with `-DFUN_DEBUG=ON` to enable additional assertions and debug messages (see `docs/build.md`).
|
||||
- Run with smaller, focused scripts to isolate issues.
|
||||
|
||||
## Getting useful reports
|
||||
- Capture the minimal script that reproduces the issue.
|
||||
- Note your build options and platform.
|
||||
- Record the full error output from the CLI (`fun`), including line/column if present.
|
||||
|
||||
## Tips
|
||||
- Use prints or logging sparingly to narrow down failing code.
|
||||
- Start from a passing simple case and add complexity until it breaks.
|
||||
Loading…
Add table
Add a link
Reference in a new issue