Can i debug using assemblies from the GAC?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Julia

    Can i debug using assemblies from the GAC?


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

    Thanks


  • Richard Blewett [DevelopMentor]

    #2
    Re: Can i debug using assemblies from the GAC?

    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>\ass emblies\gac\<si mple name>\<version> _<culture or blank>_<public key token>

    e.g.

    c:\windows\asse mblies\gac\util \1.0.0.0__12adf 3eb23567acf

    Regards

    Richard Blewett - DevelopMentor



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

    Thanks

    Comment

    • Bonj

      #3
      RE: Can i debug using assemblies from the GAC?

      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.

      "Julia" wrote:
      [color=blue]
      >
      > Is it possible to debug an application when with assemblies added to the
      > GAC?
      > I cannot set break points?!
      >
      > Thanks
      >
      >
      >[/color]

      Comment

      • Richard Blewett [DevelopMentor]

        #4
        RE: Can i debug using assemblies from 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



        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.


        Comment

        Working...