Skip to content

**"Variable is optimized away and not available."**, how can I view those variables in vscode? #14706

Closed Answered by lnicola
xiongmao86 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@xiongmao86
Comment options

@xiongmao86
Comment options

@lnicola
Comment options

lnicola May 2, 2023
Collaborator

@xiongmao86
Comment options

Answer selected by xiongmao86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants