Redigera

Dela via


/FR, /Fr (Name SBR file)

Creates .sbr (source browser) files, used by Code maps, BSCMAKE, and some third-party code browsing tools.

Syntax

/FR[pathname[\filename]]
/Fr[pathname[\filename]]

Arguments

pathname
The optional destination directory for the generated .sbr files. If this value isn't specified, the files are created in the default output directory. For more information, see Specifying the pathname.

filename
An optional filename for the generated .sbr file. If this value isn't specified, the compiler uses the base name of the source file with a .sbr extension. For more information, see Specifying the pathname.

Remarks

/FR creates an .sbr file with complete symbolic information.

/Fr creates an .sbr file without information on local variables. /Fr is deprecated; use /FR instead. For more information, see the Deprecated and removed compiler options section in Compiler options listed by category.

The Visual Studio Code Maps feature requires the .sbr files generated by /FR.

The Microsoft Browse Information File Maintenance Utility (BSCMAKE) uses .sbr files to create a .bsc file, used to display browse information in some third-party tools. For more information, see BSCMAKE reference.

Note

Although BSCMAKE is still installed with Visual Studio, it's no longer used by the IDE. Since Visual Studio 2008, browse and symbol information is stored automatically in a SQL Server SDF file in the solution folder. If you use BSCMAKE, don't change the .sbr extension. BSCMAKE requires the intermediate files to have that extension.

To set this compiler 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 > C/C++ > Browse Information property page.

  3. Modify the Browse Information File or Enable Browse Information property.

To set this compiler option programmatically

See also

Output-File (/F) options
MSVC compiler options
MSVC compiler command-line syntax
Specifying the pathname