Tutorial :If an errormessage displays a linenumber, does this mean the assembly is build in debug mode?


I have a web that I build with WebDeploymentProject. I thought I had build it in release mode, but now an errrormessage displays a linenumber. I have deployed a pdb file to the server. Can an assembly build in release mode display linenumbers if the pdb is present?

Is there any way to tell if an assembly is build in debug mode or release mode?


Pdb files provides line number information, so there is nothing criminal in error messages.

To detect if an assembly built in debug mode inspect Debuggable attribute attached to the assembly.


Yes. And that a .pdb file exists in addition to the .dll or .exe.


I did a little updating to get a tool called IsDebug ported to .Net 2.0 once upon a time.

It's a WinForm application - you start it up, drag your DLL onto it, it tells you whether it's compiled in debug or release mode.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »