microsoft/MIEngine

PRovide a way to actually enable the natvis diagnostics in VS Code

nikitalita opened this issue · 4 comments

There doesnt seem to be any way to enable the diagnostic output if you're using this with VS Code; I have no idea how to debug natvis issues without this ability.

You should be able to enable natvis diagnostic in your launch.json.

E.g.

{
   "program": ...,
   "natvisDiagnostics": "verbose"
}

See https://github.com/microsoft/vscode-cpptools/blob/8d42c49b77aadb5ae4286f21efcd159601118805/Extension/package.json#L3730

Ah, it needs to be in the logging object, like this:

{
   "program": ...,
   "logging": {
         "natvisDiagnostics": "verbose",
    },
}

That didn't seem to do anything; the natvis is being loaded because I DO see some of the visualizations I programmed, but i'm not seeing anything in the debug console or the terminal window. I don't see any entries in exec log list that would suggest natvis logging is available, either.

macOS 13.0

nikita@Nikitas-MBP extensions % /usr/bin/lldb --version
lldb-1403.0.17.67
Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)

the launch config:
image

@WardenGnaw could you write, please, in what window logs should appear?