G
Guest
Hi,
My application provides a feature to load custom assemblies. The application
is build in release mode (/optimize). This is .NET 2.0.
As a user wants to debug his custom assembly be e.g. forcing a debugger
break ("Debugger.Break()"), he experiences that he can not inspect the value
of the public properties of any class, since they are optimized away:
"Cannot evaluate expression because the code of the current method is
optimized."
This is true even as the compiled assembly is built in debug mode using
"/optimize-".
I found something in docs, saying that the /optimize settings of the calling
assembly - which is my app built in release mode - take precedence.
What can be done to make the custom assembly fully debuggable?
Thanks in advance.
Dierk Droth
My application provides a feature to load custom assemblies. The application
is build in release mode (/optimize). This is .NET 2.0.
As a user wants to debug his custom assembly be e.g. forcing a debugger
break ("Debugger.Break()"), he experiences that he can not inspect the value
of the public properties of any class, since they are optimized away:
"Cannot evaluate expression because the code of the current method is
optimized."
This is true even as the compiled assembly is built in debug mode using
"/optimize-".
I found something in docs, saying that the /optimize settings of the calling
assembly - which is my app built in release mode - take precedence.
What can be done to make the custom assembly fully debuggable?
Thanks in advance.
Dierk Droth