Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7667699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:10:20+00:00 2026-05-31T15:10:20+00:00

Debug menu – Exceptions – put a tick in Thrown on the Common Language

  • 0

Debug menu – Exceptions – put a tick in Thrown on the Common Language Runtime Exceptions.

When you do this it breaks on all exceptions which is great.

You can add other exceptions to that pack, and or enable or disable individuals, but that’s a bit of effort.

Is there a way to supress the break into debugger using a source directive? Some sort of comment or pragma or anything like that?

I have one bit of code where I can’t, not have an exception thrown and it is a bit of a pain having the debugger break on it. I prefer to have VS break on any exception thrown though, just, in this case, no this one.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:10:21+00:00Added an answer on May 31, 2026 at 3:10 pm

    You can do this using the DebuggerStepThrough attribute on the method that contains the code that you don’t want to break on. You should isolate the specific lines of code that throw the exception into a smaller method and annotate that method with the DebuggerStepThrough attribute so you’re not affecting the rest of your existing method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm used to using the Detach All function on the debug menu to allow
I feel a little stupid asking this, but the Debug-menu in my Visual Studio
Running Visual Studio 2008 .net 2.0. From the Debug Menu, I select Exceptions and
Briefly: In Visual Studio 2008, the Debug menu has an Exceptions... option. When clicking
I have an issue with IE6&7 that I cannot debug. I have a menu
Debug HTTP is easy, you have all sort of tools to do it (like
EDIT #3 : Microsoft has released a 'fix' to this problem which is available
I have defined a menu template which, in theory, should use the backgroundcolor of
Context When debugging (with the Debug menu F5 ) a Visual Studio solution, a
Visual studio unit testing starts all tests when I use Start Debugging from Debug

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.