microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.45k stars 1.53k forks source link

Natvis error loading xml on Mac Darwin x64 20.1.0 #6648

Open sotoahsAlto opened 3 years ago

sotoahsAlto commented 3 years ago

Type: Debugger

Describe the bug

To Reproduce Please include a code sample and launch.json configuration. Steps to reproduce the behavior:

  1. download (https://github.com/aleksey-nikolaev/natvis-collection/blob/master/qt5.natvis), or create a natvis file using \< \>
  2. add visualizerFile configuration to launch.json
  3. It would not work and: Error "There is an error in XML document message would appear on debug console

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(lldb) Launch", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "lldb", "visualizerFile": "/Users/sotoahs/Alto/qt5.natvis", } , { "name": "(Windows) Launch", "type": "cppvsdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true, "visualizerFile": "C:\\Users\\soto0\\Alto\\qt5.natvis", } ] }

Additional context If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (692) Send Event AD7LoadCompleteEvent\n"},"seq":91} 1: (692) Send Event AD7LoadCompleteEvent --> R (configurationDone-4): {"type":"response","request_seq":4,"success":true,"command":"configurationDone","body":{},"seq":90} --> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Error \"There is an error in XML document (447, 37).\" while reading file: /Users/sotoahs/Alto/qt5.natvis\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":94} Error "There is an error in XML document (447, 37)." while reading file: /Users/sotoahs/Alto/qt5.natvis Warning: Debuggee TargetArchitecture not detected, assuming x86_64.

WardenGnaw commented 3 years ago

Thank you for reporting this issue. We’ll let you know if we need more information to investigate it.

I can validate that it throws this error on Windows, too.