**"Variable is optimized away and not available."**, how can I view those variables in vscode? #14706
-
Hi, I am trying to debug a project call is that because of the way I build? I build with P.S. Thanks for making this great app, I can't wait to learn more about it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi. This sometimes happens, e.g. on unused variables. Regardless of that, I don't think you can do much about it. Native language debuggers will always give a worse experience than those for managed languages. We don't do anything besides setting up the debugging extension. Depending on your platform, you can try another one, there's at least three: C/C++, Native Debug and CodeLLDB. |
Beta Was this translation helpful? Give feedback.
-
It seems that variable is optimized away includes variables that have no yet actually been created. Ideally such variables would not be displayed until they are actually valid. |
Beta Was this translation helpful? Give feedback.
Hi. This sometimes happens, e.g. on unused variables. Regardless of that, I don't think you can do much about it. Native language debuggers will always give a worse experience than those for managed languages.
We don't do anything besides setting up the debugging extension. Depending on your platform, you can try another one, there's at least three: C/C++, Native Debug and CodeLLDB.