ASP.NET Tips: Debugger command you may not know about – finddebugmodules

So there are a couple different things that can affect performance of your ASP.NET application.  One of them is if you are running with debug builds of your files.  This is where this command comes in.  When run, it will tell you any modules that you have in your process that are built debug or built release with the /debug switch (to create pdb files).

The output looks like:

FindDebugModules

So from this you can see what files you need to rebuild.  Remember that unless you are debugging in Visual Studio, you don’t need pdb files for .NET.  So you can safely turn that switch off.

kick it on DotNetKicks.com

Published 01 April 08 03:00 by Tom

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# ASP.NET Debugging : ASP.NET Tips: Debugger command you may not know about ??? finddebugmodules said on April 1, 2008 6:08 PM:

PingBack from http://blogs.msdn.com/tom/archive/2008/04/01/asp-net-tips-debugger-command-you-may-not-know-about-finddebugmodules.aspx

# Greg Young said on April 22, 2008 5:13 AM:

I disagree ... greatly ...

You still want to BUILD with pdbs in case you need to use them later (memory dumps etc) you just don't want to DEPLOY pdbs with your application.

# Tom said on April 22, 2008 6:55 AM:

Greg,

You bring up a good point.  Which is what do you use pdb's for?  With managed code, the only reason to have them is if you plan on debugging the application live with Visual Studio.  If you are going to look at dumps and use Windbg and other debuggers like that, they don't use pdb's at all.  So basically, if you build them, you are putting in the hooks into the dll which are not needed.  And with a managed assembly, that actually takes up more memory and causes the files to be bloated.  Not just the dll on your drive, but the compiled assembly in memory.

# ASP.NET Debugging said on June 18, 2008 3:46 PM:

These are not a new command in some regards as they were added to the 1.x version of SOS that ships with

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker