Just pointing out with the example code you posted it is entirely possible and reasonable for those variables to be optimised out, even in debug mode LLVM may still do some trivial optimisations.
I found some solutions for viewing variables added to the Watch pane while using F5 step debugging in VS Code.
However, with respect to the policies of this forum, and after reading the migration announcement, I am unsure whether it is appropriate to share a solution that I discovered with some assistance from AI while troubleshooting the problem, especially since I am new to Ziggit.
The ziggit policy is just that you have to disclose that LLMs were used, and ideally how they were used. And that you can’t use them to write your messages (minor exception for language translation, with a disclaimer as they can be bad).
There is no issue with explaining a solution to your problem that you happened to use an LLM to help with.