Can i debug using assemblies from the GAC?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Is it possible to debug an application when with assemblies added to the
GAC?
I cannot set break points?!

Thanks
 
You need to put the .pdb file in the same physical directory as the assembly in the GAC. Do do this you have to use the command line as a shell extension masks the physical makeup of the GAC. You want to put the .pdb file in the following directory:

c:\<windir>\assemblies\gac\<simple name>\<version>_<culture or blank>_<public key token>

e.g.

c:\windows\assemblies\gac\util\1.0.0.0__12adf3eb23567acf

Regards

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

Is it possible to debug an application when with assemblies added to the
GAC?
I cannot set break points?!

Thanks
 
You dont' want to do that - debug it when it's in debug mode and in the
application or debug directory or whatever. Then when you know it works as
you want, put it in release mode, do a build, build the setup project, and
that will install it into the GAC. You shouldn't ever need to *debug* it once
it's already in the GAC...

If you 're doing production-mode debugging (i.e. debugging that *has* to be
done on a computer that doesn't have the IDE installed) you'd want to be
doing a "special edition" build with a setup project that doesn't install to
the GAC.
 
Try debugging a component thats being used from a BizTalk Orchestration then repost your opinion ;-).

Sometimes you don't have an option about how you perform debugging

Regards

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

You dont' want to do that - debug it when it's in debug mode and in the
application or debug directory or whatever. Then when you know it works as
you want, put it in release mode, do a build, build the setup project, and
that will install it into the GAC. You shouldn't ever need to *debug* it once
it's already in the GAC...

If you 're doing production-mode debugging (i.e. debugging that *has* to be
done on a computer that doesn't have the IDE installed) you'd want to be
doing a "special edition" build with a setup project that doesn't install to
the GAC.
 
Back
Top