/NATVIS (Add Natvis to PDB)

/NATVIS:filename

Parameters

filename
A Natvis file to add to the PDB file. It embeds the debugger visualizations in the Natvis file into the PDB.

Remarks

The /NATVIS option embeds the debugger visualizations defined in the Natvis file filename into the PDB file generated by LINK. This allows the debugger to display the visualizations independently of the .natvis file. You can use multiple /NATVIS options to embed more than one Natvis file in the generated PDB file.

LINK ignores /NATVIS when a PDB file is not created by using a /DEBUG option. For information on creation and use of .natvis files, see Create custom views of native objects in the Visual Studio debugger.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > Command Line property page.

  3. Add the /NATVIS option to the Additional Options text box.

To set this linker option programmatically

  • This option does not have a programmatic equivalent.

See also

MSVC linker reference
MSVC Linker Options