How to avoid exception breakpoint inside my reference assembly ?

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

    #1

    How to avoid exception breakpoint inside my reference assembly ?

    I have a reference assembly that I wrote. The assembly can throw
    exceptions. I am handling these exceptions but, when running my code
    from VB, VB still insists on setting a breakpoint where the exception is
    being thrown inside the assembly.

    Is there anyway to avoid this? If so how?




    --
    Bruce E. Stemplewski
    GarXface OCX and C++ Class Library for the Garmin GPS

  • Cor Ligthert [MVP]

    #2
    Re: How to avoid exception breakpoint inside my reference assembly ?

    Bruce,

    Put off the breakpoint outside your debugging action.
    (I assume it is an ASPNET project)

    Cor

    "Bruce" <Bruce@nospam.c omschreef in bericht
    news:enDIXSUMHH A.4244@TK2MSFTN GP04.phx.gbl...
    >I have a reference assembly that I wrote. The assembly can throw
    >exceptions. I am handling these exceptions but, when running my code from
    >VB, VB still insists on setting a breakpoint where the exception is being
    >thrown inside the assembly.
    >
    Is there anyway to avoid this? If so how?
    >
    >
    >
    >
    --
    Bruce E. Stemplewski
    GarXface OCX and C++ Class Library for the Garmin GPS
    www.stempsoft.com

    Comment

    • Bruce

      #3
      Re: How to avoid exception breakpoint inside my reference assembly?

      What do you mean by "put off"?

      I am not setting this breakpoint. VB is automatically setting it at the
      point where the exception is being thrown.

      Bruce



      Cor Ligthert [MVP] wrote:
      Bruce,
      >
      Put off the breakpoint outside your debugging action.
      (I assume it is an ASPNET project)
      >

      --
      Bruce E. Stemplewski
      GarXface OCX and C++ Class Library for the Garmin GPS

      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: How to avoid exception breakpoint inside my reference assembly ?

        Bruce,
        It sounds like you have the "Break when an exception is Thrown" option
        turned on.

        Use "Debug - Exceptions" to change this option. On the "Common Language
        Runtime Exceptions" node check the "Thrown" checkbox if you want to break on
        all exceptions, uncheck the checkbox if you don't.

        Most of the time I prefer this option to be off, once in a while its helpful
        to have it on. For example when debugging my exception handlers themselves.

        --
        Hope this helps
        Jay B. Harlow [MVP - Outlook]
        ..NET Application Architect, Enthusiast, & Evangelist
        T.S. Bradley - http://www.tsbradley.net


        "Bruce" <Bruce@nospam.c omwrote in message
        news:enDIXSUMHH A.4244@TK2MSFTN GP04.phx.gbl...
        >I have a reference assembly that I wrote. The assembly can throw
        >exceptions. I am handling these exceptions but, when running my code from
        >VB, VB still insists on setting a breakpoint where the exception is being
        >thrown inside the assembly.
        >
        Is there anyway to avoid this? If so how?
        >
        >
        >
        >
        --
        Bruce E. Stemplewski
        GarXface OCX and C++ Class Library for the Garmin GPS
        www.stempsoft.com

        Comment

        • Cor Ligthert [MVP]

          #5
          Re: How to avoid exception breakpoint inside my reference assembly ?

          Doh,

          That can it be, I knew it and I forgot it. I would not have thougth that
          about this one.
          Greath Jay.

          Cor

          "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @tsbradley.nets chreef in
          bericht news:uS1797qMHH A.3268@TK2MSFTN GP04.phx.gbl...
          Bruce,
          It sounds like you have the "Break when an exception is Thrown" option
          turned on.
          >
          Use "Debug - Exceptions" to change this option. On the "Common Language
          Runtime Exceptions" node check the "Thrown" checkbox if you want to break
          on all exceptions, uncheck the checkbox if you don't.
          >
          Most of the time I prefer this option to be off, once in a while its
          helpful to have it on. For example when debugging my exception handlers
          themselves.
          >
          --
          Hope this helps
          Jay B. Harlow [MVP - Outlook]
          .NET Application Architect, Enthusiast, & Evangelist
          T.S. Bradley - http://www.tsbradley.net
          >
          >
          "Bruce" <Bruce@nospam.c omwrote in message
          news:enDIXSUMHH A.4244@TK2MSFTN GP04.phx.gbl...
          >>I have a reference assembly that I wrote. The assembly can throw
          >>exceptions. I am handling these exceptions but, when running my code from
          >>VB, VB still insists on setting a breakpoint where the exception is being
          >>thrown inside the assembly.
          >>
          >Is there anyway to avoid this? If so how?
          >>
          >>
          >>
          >>
          >--
          >Bruce E. Stemplewski
          >GarXface OCX and C++ Class Library for the Garmin GPS
          >www.stempsoft.com
          >

          Comment

          • Bruce

            #6
            Re: How to avoid exception breakpoint inside my reference assembly?

            Jay B. Harlow [MVP - Outlook] wrote:
            Bruce,
            It sounds like you have the "Break when an exception is Thrown" option
            turned on.
            >
            Use "Debug - Exceptions" to change this option. On the "Common Language
            Runtime Exceptions" node check the "Thrown" checkbox if you want to
            break on all exceptions, uncheck the checkbox if you don't.
            >
            Most of the time I prefer this option to be off, once in a while its
            helpful to have it on. For example when debugging my exception handlers
            themselves.
            >
            Thanks they were all set to "User Defined"

            I unchecked them an it seems to have solved the problem. Did I do the
            correct thing?


            --
            Bruce E. Stemplewski
            GarXface OCX and C++ Class Library for the Garmin GPS

            Comment

            • Jay B. Harlow [MVP - Outlook]

              #7
              Re: How to avoid exception breakpoint inside my reference assembly ?

              Bruce,
              I unchecked them an it seems to have solved the problem. Did I do the
              correct thing?
              If it gives you the results you expect, yes you did...

              --
              Hope this helps
              Jay B. Harlow [MVP - Outlook]
              ..NET Application Architect, Enthusiast, & Evangelist
              T.S. Bradley - http://www.tsbradley.net


              "Bruce" <Bruce@nospam.c omwrote in message
              news:eO0%23z15M HHA.3952@TK2MSF TNGP02.phx.gbl. ..
              Jay B. Harlow [MVP - Outlook] wrote:
              >Bruce,
              >It sounds like you have the "Break when an exception is Thrown" option
              >turned on.
              >>
              >Use "Debug - Exceptions" to change this option. On the "Common Language
              >Runtime Exceptions" node check the "Thrown" checkbox if you want to break
              >on all exceptions, uncheck the checkbox if you don't.
              >>
              >Most of the time I prefer this option to be off, once in a while its
              >helpful to have it on. For example when debugging my exception handlers
              >themselves.
              >>
              >
              Thanks they were all set to "User Defined"
              >
              I unchecked them an it seems to have solved the problem. Did I do the
              correct thing?
              >
              >
              --
              Bruce E. Stemplewski
              GarXface OCX and C++ Class Library for the Garmin GPS
              www.stempsoft.com

              Comment

              Working...