Add instructions for including CARBON_VLOG output when running a file_test (#5959)

This commit is contained in:
Dana Jansens
2025-08-14 18:12:54 +00:00
committed by GitHub
parent b851e8c423
commit 9feb493680
+13
View File
@@ -605,6 +605,19 @@ The `-v` flag can be passed to trace state, and should be specified before the
subcommand name: `carbon -v compile ...`. `CARBON_VLOG` is used to print output
in this mode. There is currently no control over the degree of verbosity.
To include VLOG output when debugging a file test, add an `ARGS: -v compile %s`
line to the file, such as:
```
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/convert.carbon
// ARGS: -v compile %s
// EXTRA-ARGS: --dump-sem-ir-ranges=if-present
```
This will also include the VLOG output when running the test in an interactive
debugger. Note that using `-v compile` with `autoupdate.py` will deeply mangle
your test file, so avoid doing that.
#### Stack traces
While the iterative processing pattern means function stack traces will have