Closed yh-sb closed 8 months ago
Thank you for reporting this issue. We’ll let you know if we need more information to investigate it.
This issue has been closed as lower priority. We're sorry if this issue still impacts you but unfortunately we're not able to address this. We will accept a pull request from the community if it's applicable for this issue.
Environment
Bug Summary and Steps to Reproduce
Natvis doesn't recognize nested (wildcard
*
) type if type is used with::
scope resolution via typedef. In the following c++ example:custom_list<int>::iterator it;
typeint
($T1 in natvis) is recognized as void by vscode natvis. So, it can't be displayed.Source code:
Natvis file:
Expected result: $T1 recognized as int and natvis works fine.
Debugger Configurations
Debugger Logs
DEBUG CONSOLE
```shell --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (53) LaunchOptions{\"name\":\"g++ active file\",\"type\":\"cppdbg\",\"request\":\"launch\",\"program\":\"D:\\\\dev\\\\c++\\\\cpp-examples\\\\examples/types_natvis\",\"cwd\":\"D:\\\\dev\\\\c++\\\\cpp-examples\\\\examples\",\"miDebuggerPath\":\"gdb\",\"internalConsoleOptions\":\"neverOpen\",\"preLaunchTask\":\"g++ active file\",\"showDisplayString\":true,\"visualizerFile\":\"D:\\\\dev\\\\c++\\\\cpp-examples/.vscode/custom.natvis\",\"logging\":{\"engineLogging\":true,\"trace\":true,\"traceResponse\":true},\"__configurationTarget\":6,\"configSource\":\"workspaceFolder\",\"debugType\":\"debug\",\"__sessionId\":\"9a078ad4-d0d6-4f11-a3be-e0baf25d4060\",\"MIMode\":\"gdb\"}\r\n"},"seq":2} 1: (53) LaunchOptions{"name":"g++ active file","type":"cppdbg","request":"launch","program":"D:\\dev\\c++\\cpp-examples\\examples/types_natvis","cwd":"D:\\dev\\c++\\cpp-examples\\examples","miDebuggerPath":"gdb","internalConsoleOptions":"neverOpen","preLaunchTask":"g++ active file","showDisplayString":true,"visualizerFile":"D:\\dev\\c++\\cpp-examples/.vscode/custom.natvis","logging":{"engineLogging":true,"trace":true,"traceResponse":true},"__configurationTarget":6,"configSource":"workspaceFolder","debugType":"debug","__sessionId":"9a078ad4-d0d6-4f11-a3be-e0baf25d4060","MIMode":"gdb"} --> C (runInTerminal-4): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: types_natvis","cwd":"","args":["c:\\Users\\admin\\.vscode\\extensions\\ms-vscode.cpptools-1.15.1-win32-x64\\debugAdapters\\bin\\WindowsDebugLauncher.exe","--stdin=Microsoft-MIEngine-In-0dqzkun5.ygk","--stdout=Microsoft-MIEngine-Out-zdsx4piq.qjg","--stderr=Microsoft-MIEngine-Error-bwzuso4f.uop","--pid=Microsoft-MIEngine-Pid-svzuyboq.5nn","--dbgExe=C:\\Program Files\\mydevtools\\MinGW-w64\\bin\\gdb.exe","--interpreter=mi"],"env":{}},"seq":4} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (95) Wait for connection completion.\r\n"},"seq":6} 1: (95) Wait for connection completion. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (280) ->=thread-group-added,id=\"i1\"\r\n"},"seq":8} 1: (280) ->=thread-group-added,id="i1" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (280) ->~\"GNU gdb (GDB for MinGW-W64 x86_64, built by Brecht Sanders) 12.1\\n\"\r\n"},"seq":10} 1: (280) ->~"GNU gdb (GDB for MinGW-W64 x86_64, built by Brecht Sanders) 12.1\n" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (281) ->~\"Copyright (C) 2022 Free Software Foundation, Inc.\\n\"\r\n"},"seq":12} 1: (281) ->~"Copyright (C) 2022 Free Software Foundation, Inc.\n" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (281) ->~\"License GPLv3+: GNU GPL version 3 or laterOther Extensions
No response
Additional Information
No response