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

  • SEARCH
  • Home
  • 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 4608676
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:52:44+00:00 2026-05-22T00:52:44+00:00

I have some framework / AOP code that logs exceptions from methods called deeper

  • 0

I have some framework / AOP code that logs exceptions from methods called deeper inside…

try {
  ..invoke inner code...
}
catch (Exception e) {
  log(e);
  throw;
}

This works great except for one thing…when my team tries to debug their code in Studio, they only see the exception happening in the logging code (since it gets handled, and then thrown from there).

Is there any way I can get Studio to ignore that my code is catching/throwing an exception…or to inspect the exception on it’s way through without catching it?

UPDATE:
The issue is that I have framework code that prevents the correct break-point for the real exception from being hit. I am aware that the debugger in visual studio is capable of fine-grained configuration, and I am hoping that someone here can provide a higher level insight than “Learn VS2010 in 31 Hours” does. I simply want to BOTH log the exceptions that are caused in inner code, AND have the break happen at the site of the error WITHOUT turning on ‘Break on All Exceptions’ which would cause my team to spend 5 minutes pressing the ‘Continue’ button every time they launched the app (but that’s another story).

UPDATE 2:
The primary question here, is how can I log the exception, but have the debugger not stop on the ‘throw’ in my logger, but on the initial exception, without having the debugger stop on all exceptions thrown.

  • 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-22T00:52:45+00:00Added an answer on May 22, 2026 at 12:52 am

    I’ve done some digging, and the answer in 1349613 put me on a good scent. I’ve added the attribute:

    [DebuggerNonUserCode]
    

    To my logging class. Now when the internal, invoked code throws an exception, the debugger ignores the logging code, and it’s Try/Catch block, and goes straight to the internal exception.

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

Sidebar

Related Questions

I my framework I have some functions that when done they can add some
We have a framework that defines many interfaces and some basic default implementations. Let's
I have some bundles, that are independent of SWT and eclipse framework. I would
Is it possible to have some kind of type converter that allows Sync Framework
What are some of the ways you have implemented models in the Zend Framework?
We are currently looking to adopt some type of standard developer framework and have
I am developing a framework, and some of the objects have reaaally long names.
Most python frameworks will have a development webserver of some kind that will have
I have some UI in VB 2005 that looks great in XP Style, but
I have some code for starting a thread on the .NET CF 2.0: ThreadStart

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.