Skip to content

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

Description

@nikitalita

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.

Activity

WardenGnaw commented on Dec 21, 2023

@WardenGnaw
Member

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

nikitalita commented on Dec 21, 2023

@nikitalita
ContributorAuthor

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

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

nikitalita commented on Dec 21, 2023

@nikitalita
Author

NValerij commented on Jan 15, 2024

@NValerij

Andrew Wang (@WardenGnaw) could you write, please, in what window logs should appear?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions