Re: Bugs

From: Jochen Kalmbach (nospam-Jochen.Kalmbach_at_holzma.de)
Date: 04/03/04


Date: Sat, 03 Apr 2004 09:28:11 -0800

Ayende Rahien wrote:

> 3) Not related to bugs, but does anyone knows whatever there is a way
> to know at *runtime* whatever this is a debug or release build?

The main problem that you first have to define: What is the different
between release and debug build?

>From the CLR-View the only difference is the
"System.Diagnostics.DebuggableAttribute"-Attribute.

This attribute has two properties:
- IsJITTrackingEnabled
- IsJITOptimizerDisabled

If both are "false", then you have a release build.

See:
http://msdn.microsoft.com/library/en-
us/cpref/html/frlrfsystemdiagnostics
debuggableattributeclasstopic.asp

An other difference might be the generation of PDB-Files. But the
current VS2002/2003 only support the generation of PDB-files with boths
attribut-members set to "true".

If you compile via command-line you can build a release version (no
DebuggableAttribute-Attribute or both set to false) AND have a PDB-file
generated.

-- 
Greetings
  Jochen
 
   Do you need a memory-leak finder ?
   http://www.codeproject.com/tools/leakfinder.asp
   
   Do you need daily reports from your server?
   http://sourceforge.net/projects/srvreport/


Relevant Pages

  • Re: Bugs
    ... between release and debug build? ... An other difference might be the generation of PDB-Files. ... attribut-members set to "true". ... If you compile via command-line you can build a release version (no ...
    (microsoft.public.dotnet.framework)
  • Re: Bugs
    ... between release and debug build? ... An other difference might be the generation of PDB-Files. ... attribut-members set to "true". ... If you compile via command-line you can build a release version (no ...
    (microsoft.public.dotnet.languages.csharp)

Loading