/bugreport (C# Compiler Options)

Specifies that debug information should be placed in a file for later analysis.

/bugreport:file

Arguments

  • file
    The name of the file that you want to contain your bug report.

Remarks

The /bugreport option specifies that the following information should be placed in file:

  • A copy of all source code files in the compilation.

  • A listing of the compiler options used in the compilation.

  • Version information about your compiler, run time, and operating system.

  • Referenced assemblies and modules, saved as hexadecimal digits, except assemblies that ship with the .NET Framework and SDK.

  • Compiler output, if any.

  • A description of the problem, which you will be prompted for.

  • A description of how you think the problem should be fixed, which you will be prompted for.

If this option is used with /errorreport:prompt or /errorreport:send, the information in the file will be sent to Microsoft Corporation.

Because a copy of all source code files will be placed in file, you might want to reproduce the suspected code defect in the shortest possible program.

This compiler option is unavailable in Visual Studio and cannot be changed programmatically.

Notice that contents of the generated file expose source code that could result in inadvertent information disclosure.

See Also

Reference

/errorreport (C# Compiler Options)

Other Resources

C# Compiler Options

Project Properties (Visual Studio)