views:

296

answers:

0

Hello..Masters of Asp.Net, I'm trying to generate PDB files for an ASP.NET(v2.0) Website. I'm using Aspnet_Compiler.exe and passing "-d" option to generate the PDB files. But when I inspected the generated dlls using ILDASM it had the following DebuggableAttribute on them.

  //  .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 07 01 00 00 00 00 )

Curiously this's the same attribute that gets generated for normal C# assembly build in "Debug" mode.

When I don't pass the "-d" option this attribute is not added.(and pdb is not generated)

For an assembly build in "Release" mode with pdbonly option generates the following Attribute.

 //  .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 02 00 00 00 00 00 )

So is it possible to compile an ASP.NET website in "Release" mode with "pdbonly" option. Or am I thinking in a completely wrong direction here.