/ASSEMBLYDEBUG
(Add DebuggableAttribute)
Specify whether to emit the DebuggableAttribute
attribute with debug information tracking and to disable JIT optimizations.
Syntax
/ASSEMBLYDEBUG
[:DISABLE
]
Remarks
The /ASSEMBLYDEBUG
linker option emits the DebuggableAttribute
attribute with debug information tracking and disables JIT optimizations. This option is the same as specifying the following attribute in source:
[assembly:Debuggable(true, true)]; // same as /ASSEMBLYDEBUG
/ASSEMBLYDEBUG:DISABLE
emits the DebuggableAttribute
attribute but disables the tracking of debug information and enables JIT optimizations. This option is the same as specifying the following attribute in source:
[assembly:Debuggable(false, false)]; // same as /ASSEMBLYDEBUG:DISABLE
By default, the linker doesn't emit the DebuggableAttribute
attribute.
DebuggableAttribute
can also be added to an assembly directly in source code. For example:
[assembly:Debuggable(true, true)]; // same as /ASSEMBLYDEBUG
You must explicitly specify that a managed image is debuggable. The /Zi
option alone is insufficient.
Other linker options that affect assembly generation are:
To set this linker option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > Linker > Debug property page.
Modify the Debuggable Assembly property.
To set this linker option programmatically
- See AssemblyDebug.
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho