-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
natvis visualizers do not follow typedefs #1026
Comments
@WardenGnaw Can you check this for @Trass3r |
I think the problem was that |
It also seems to strip default template arguments: +ptype/mt std::unique_ptr<int, std::default_delete<int> >
type = std::unique_ptr<int> And there is no MI version of these commands: https://sourceware.org/bugzilla/show_bug.cgi?id=8143 |
Ohhhhh thanks for looking into this! |
See microsoft/vscode-cpptools#3038
The typename retrieved from
var-create
here could be a typedef.If the type name can't be matched it should try the actual type retrieved via whatis:
I guess it could be implemented in https://github.com/microsoft/MIEngine/blob/master/src/MIDebugEngine/Natvis.Impl/Natvis.cs#L929 with something like
await _debugger.ConsoleCmdAsync("whatis " + variable.TypeName, allowWhileRunning: true);
@pieandcakes ?Or it could always be resolved during
var-create
or an additional property added toIVariableInformation
.The text was updated successfully, but these errors were encountered: