Debugging a single unit test in VS Code on Windows

I have been having trouble with debugging unit tests inside VS code. I am able to launch the debugging session and step through the code, but unable to view the contents of most variables, such as the contents of a Vec. Many variables in the debug pane are listed as "Optimized away" and "not available".

The resources I've found online are for debugging a binary application, not a single unit test through the VS code UI.

Does anyone know how to make the experience better?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.