Giter VIP home page Giter VIP logo

exceptionbreaker's Introduction

Overview

ExceptionBreaker is a VS extension that provides a way to fast-toggle breaking on all CLR exceptions.
It is available through both Debug toolbar and Debug top level menu.

Installation

The extension can be installed from Visual Studio Gallery.
Supported VS versions: 2010, 2012, 2013, 2015.

Details

Pressing the button sets (or unsets) breaking for all exceptions in Common Language Runtime Exceptions group:

Notes:

  1. If using Just My Code, both Thrown and Unhandled columns will be affected.
    (I do not use Just My Code so please let me know if deselecting Unhandled makes any sense).

  2. Deselected button is not equal to "Do not break on all CLR exceptions".
    Some exceptions might be selected (manually through Debug -> Exceptions) โ€” just not all of them.

Options

By popular demand, version 1.1 introduces support for excluding certain exceptions from being changed:

Thanks

This extension would not exist without the help of Sam Harwell of Tunnel Vision Laboratories.

exceptionbreaker's People

Contributors

aplocher avatar ashmind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

exceptionbreaker's Issues

Support VS2017

This is one of those key addins that is currently missing :)

Exception starting VS2010 since a few versions

Screenshot from Exception while VS2010 starting up

The dialog above comes up, everytime I start VS2010!
It doesn't matter if I press yes or no, the ActivityLog XML file won't be written, so I have nothing to help you to fix this, but the screenshot above.
If I do not react onto this dialog, VS2010 crashes silently and does not complete its startup.

Can't filter out System.Globalization.CultureNotFoundException

I'm trying to filter out the (non-fatal) System.Globalization.CultureNotFoundException I get - among others - when I run my Web application project with Exception Breaker activated, but contrary to other Exceptions (like NullReferenceException or HttpException) it never pops up under "Matching exceptions".

Even entering "Culture" as a regex doesn't list a single exception, and of course just adding "CultureNotFoundException" and running my project doesn't change anything.

Of course, the System.Globalization.CultureNotFoundException is not listed under "Debug/Exceptions..." either, but I can add it there and unticking it stops VS breaking when it occurs.

[Breakpoints] Breakpoint in preview tab using Symbol Server reports an error

Unexpected exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: lineNumber
   at Microsoft.VisualStudio.Text.Implementation.SimpleStringRebuilder.GetLineFromLineNumber(Int32 lineNumber)
   at Microsoft.VisualStudio.Text.Implementation.TextSnapshot.GetLineFromLineNumber(Int32 lineNumber)
   at ExceptionBreaker.Breakpoints.BreakpointFinder.GetSpanFromBreakpoint(Breakpoint2 breakpoint, ITextDocument document)
   at ExceptionBreaker.Breakpoints.Glyphs.BreakpointTagger.<>c__DisplayClass2.<.ctor>b__0(Object sender, BreakpointExtraDataChangedEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at ExceptionBreaker.Breakpoints.BreakpointExtraDataStore.NotifyDataChanged(Breakpoint2 breakpoint)
   at ExceptionBreaker.Breakpoints.BreakpointExceptionsController.RequestAndUpdateExceptionSettings(Breakpoint2 breakpoint)
   at ExceptionBreaker.Breakpoints.BreakpointExceptionsController.command_Callback(Object sender, EventArgs e)

Output window changed from "Debug" to "Ext: ExceptionBreaker (Diagnostics)"

Observed in Visual Studio 2015 Community Edition.

When stopping the debugged application, the Output Window always switches from "Debug" to "Ext: ExceptionBreaker (Diagnostics)" in the "Show output from:" field. It forces the developper to systematically switch the Output window back to see the traces written by the application before it was closed.

Managed Debugging Assistants get reset whenever the button is toggled

It seems that

            var guid = Guid.Empty;
            var hr = Session.RemoveAllSetExceptions(ref guid);

resets state of MDAs (and potentially other not-.NET exceptions?).

Since setting exceptions without RemoveAllSetExceptions does not work for some mysterious VS/COM reason, I'll have to record state of MDA, and restore it after the Remove call.

[Breakpoints] NullReferenceException in an unknown location

Related to #4.

Unexpected exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at ExceptionBreaker.Breakpoints.BreakpointFinder.GetBreakpointForCommand()
   at ExceptionBreaker.Breakpoints.BreakpointExceptionsController.command_BeforeQueryStatus(Object sender, EventArgs e)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.