Skip to content

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

Open

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

  1. 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

  2. nikitalita commented on Dec 21, 2023

    @nikitalita
    ContributorAuthor

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

    {
       "program": ...,
       "logging": {
             "natvisDiagnostics": "verbose",
        },
    }
    
  3. nikitalita commented on Dec 21, 2023

    @nikitalita
    Author
  4. 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