all groups > visual studio .net debugging > july 2004 >
You're in the

visual studio .net debugging

group:

Cannot rebuild app after unloading AppDomain because .pdb file still in use by debugger


Cannot rebuild app after unloading AppDomain because .pdb file still in use by debugger Bern McCarty
7/19/2004 11:56:19 AM
visual studio .net debugging:

I have an application that I extend with .NET assemblies that I load and run into their own
AppDomains. I want to be able to do edit/compile/test cycles on the extenstions without requiring
a process restart. I can unload the extension/assembly under development by unloading the
non-default AppDomain that is running in, but I find that I cannot recompile it because it's .pdb
file seems to still be in use by the debugger. Is there a way to get the debugger to let go of it?

I am using the VS 2003 debugger.


Bern McCarty
Bentley Systems, Inc.

Re: Cannot rebuild app after unloading AppDomain because .pdb file still in use by debugger Tarek Madkour [MSFT]
7/19/2004 5:38:49 PM
"Bern McCarty" <bern.mccarty@bentley.com> wrote in
news:#eA9vjabEHA.3204@TK2MSFTNGP09.phx.gbl:

[quoted text, click to view]

You have two alternatives:
1. detach the debugger and attach again, or
2. use the asp.net approach of having a directory that you build to and
others that you run from. I think they copy the binary (and pdb) to a
new directory everytime they load an assembly or something like that.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
AddThis Social Bookmark Button