Re: Debug + GAC



Granted about instrumentation.

You have to be very careful with unit test environments to make sure that they configure *everything* the way that the code will actually be driven in reality - personally I like to do a sanity check - on a dev machine that the way I've configured the test environment actually matches the real world that the code will live in. So I also test under the real conditions and then, sometimes, its useful to be able to attach a debugger to work out whats happening different than you expected

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

>> Just to add to Johann's response:
>>
>> Don't debug in the GAC. It's as simple as that.


> Thats all very well until you need to debug in the GAC ;-)
>
> For example, if you are trying to debug a .NET component that is being
> called from a BizTalk Orchestration. In that case you have to put the .pdb
> file in the same physical directory as the component so you have to put it
> in the physical GAC directory.
>

or you write a multi-threaded unit test harness that calls your component
directly in the dev environment. I've debugged BTS components. I'm not
crazy enough to debug them in the GAC.

I appreciate that putting the PDB file in the GAC directory works. Fine. In
my humble opinion, it is an unnecessary hack employed by people who didn't
plan their project to include sufficient time to test, didn't test their
apps sufficiently to catch defects on the dev environment, and didn't
instrument their apps well enough to pinpoint the actual behavior that they
need to reproduce.

.



Relevant Pages

  • Re: Problem implimenting a Custom Active Directory Role Provider
    ... The GAC issue cant be CAS related, ... Did you successfully try to do a step-by-step debug? ... provider your break point should be hit ... The issue is most definitely code access related. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Debug + GAC
    ... > Thats all very well until you need to debug in the GAC;-) ... I appreciate that putting the PDB file in the GAC directory works. ... I do not answer questions on behalf of my employer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hang while debugging ASP.Net on Windows 2003
    ... local assemblies into the GAC... ... > When I start rebuilding the solution it takes 70MB mem and VM. ... > If I start the application again and also want to debug the code, ... > the same amount of memory. ...
    (microsoft.public.vsnet.ide)
  • Re: CreateProcess Hook
    ... Assemblies are installed into the ... Force fusion to load a Debug - Version. ... key token)) is already installed into the GAC? ...
    (microsoft.public.win32.programmer.kernel)
  • Is the GAC dynamic?
    ... I have one 2 more questions about the GAC: ... 1/If I had a dll to be shared in the GAC directory, ... Or do I have to load it manually ... or do I have to manually unload all ...
    (microsoft.public.dotnet.languages.csharp)

Loading