Repository navigation
MiniLang 1.3.17 — source-level debugging
MiniLang 1.3.17 — source-level debugging
Released on 2026-12-01.
The Python reference compiler and the self-hosted MiniLang compiler now emit
source locations and function ranges on request. Existing builds without debug
flags retain their normal code generation.
Debug output
Pass --debug-info to embed DWARF source lines, function ranges and stack-frame
records in a Windows or Linux executable. GDB can set source-line breakpoints
and show function names. On Windows, add --pdb to write a matching PDB for
Visual Studio, WinDbg and other DbgHelp clients. PDB generation requires the
Microsoft Visual C++ x64 link.exe.
The self-hosted compiler uses its monolithic pipeline for debug output;
explicit object-pipeline, packed-image and incremental-cache modes are not
available with --debug-info. Selected inlining is disabled so source
locations remain useful. Debug builds can compile more slowly, use more memory
and run hot code more slowly. Debug metadata does not add runtime tracing.
The current format covers function names and source lines, but does not yet
describe MiniLang local-variable types or guarantee stack unwinding for every
generated frame. See the debugging guide for commands and
the staged compiler build.
Verification
- Both 1.3.17 Windows compiler CLIs generated a runnable program with DWARF
source lines and a matching PDB. GDB found its first source line, and DbgHelp
resolved the same address from the PDB. - The Windows self-hosted compiler rebuilt through the Python bootstrap and
passed the build script's native smoke test. - The Linux self-hosted compiler built and passed its build-script smoke tests;
GDB resolved source lines in Linux output.
A debug self-build of the complete compiler using the native compiler remained
in its large PE/debug processing phase after 15 minutes. The staged debug
compiler build using the Python bootstrap completed and is the documented
default.
Native compiler packages
and the Python reference source
are released from their corresponding version tags.