Why do I get “identifier is undefined” or “not available” when inspecting a Rust variable in the VSCode debugger?

This issue is not reproducible with recent release of CodeLLDB.

CodeLLDB v1.7.0
rust : 1.60.0 (7737e0b5c 2022-04-04)
vscode: v1.67.0

Everything works as expected the debug view shows

iter: {end:0x000055555559105f}
c: 't'

Upgrading the codelldb to specified version will resolve the issue.

Leave a Comment