Skip to content

NATVIS errors/warnings are not reported in cppvsdbg debugger output #10343

@jeremyong

Description

@jeremyong

Environment

  • OS and version: Windows 10 Pro 22H2
  • VS Code: 1.74.2
  • C/C++ extension: 1.13.8

Bug Summary and Steps to Reproduce

Bug Summary:

Visual Studio provides a set of options to change NATVIS logging output, shown below:

image

These messages are important to identify errors in either parsing the NATVIS XML file itself, or parsing individual expressions within a given object reflected by the visualizer.

Steps to reproduce:

  1. Create either a malformed NATVIS file, or annotate a type with a malformed expression
  2. Observe that the entire NATVIS file is silently dropped by the debugger without any error or indications

Debugger Configurations

This occurs with the default launch configuration and a specified `visualizerFile` configuration key set.

Debugger Logs

No relevant logs were produced with the engine and trace logging enabled.

Other Extensions

No response

Additional Information

No response

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