I'm working on an utility that processes very large data sets. Since there are lots of code it uses to operate, some totally unexpected errors appear while running. So I run it inside Visual Studio debugging session. In most cases I can skip an error or recover from it using immediate window and some manipulation with "Set next statement". But this error can reoccur in future. Is it possible to automatize recovering process without restarting debugging session?
Is it possible to install custom unhandled exception handler while debugging in VS 2008/2010?
198 Views Asked by LOST At
1
There are 1 best solutions below
Related Questions in VISUAL-STUDIO
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- Exception thrown at 0x0131EB06 Visual Studio
- Visual Studio 2015 Cordova Plugin Add Fail
- Cannot find InvalidCastException in C# Application
- generating C# code file during Visual Studio build
- Can I deploy multiple instances of my application on the same windows phone?
- Close the Solution Explorer window
- How to generate entity framework code-first migrations without using the package manager console?
- Implementing callback function for dialog-based application
- VB.net: How to make original variable value fulfill 2 statements?
- DLL being marked as DELETEPENDING
- String tokenizing in Visual Studio C++
- How to use "Multicharts Studies" in Visual Studio 2013?
- Programs Will Not Run In Visual Studio
- VB.Net: Display total when check boxes are checked
Related Questions in DEBUGGING
- Eclipse find source file from library
- Debug native code in Android Studio
- Breakpoint "concurrency" in Intellij
- PhpStorm IDE. Collapse custom/debug code
- How does one debug infinite recursion in Haskell?
- Android Studio missing exception stacktrace in Logcat
- java FileNotFoundException wont locate a file in the same project
- How can I debug scala.js unit tests?
- Why Eclipse Debugger does not stop on scoped exception breakpoint (how to stop on handled exception)
- Suggestions for my Selection Sort / Java
- Fortran Debugging
- Debug Excel VSTO add-in when launched by double-clicking existing file
- Starting GDB with interpreter mi via .gdbinit file
- How to print call stack in Swift?
- Preventing threads in Xcode
Related Questions in EXCEPTION
- Python twisted not catching exception
- Proper use of custom exceptions
- C++ Mongodb driver, not working
- C# console application - Unhandled exception while finding the Available and free Ram space.Getting exact answer in windows forms application
- Hashing String (SHA-256) in an ActionListener class
- Do we have to mention exception type in java?
- How can I make Eclipse (or javac) warn about over-inclusive throws clauses
- Why can an Exception not be rethrown in the BackgroundWorker RunWorkerCompleted event
- How can I set the the expected Exception type for a catch statement with a parameter I've passed into a method?
- Why do I get an IndexOutOfBoundsException when my else should prevent it?
- crypto.BadPaddingException: data hash wrong (EKYC-Response)
- How to print the first line from a traceback stack
- java.lang.ArrayIndexOutOfBoundsException object array
- Passing keyword arguments to custom exceptions - anomaly
- Unauthorised access to folders when creating xml file
Related Questions in VISUAL-STUDIO-DEBUGGING
- Enable Debugging of Web App in VS2012 in non-IE Browsers
- C# trace (log) all code lines between two points
- DebuggerDisplayAttribute with partial classes
- Import-Module stops working sporadically
- How to debug an executable in visual studio using pdb file and source code in c++?
- Using/abusing a conditional breakpoint to manipulate a value
- Parallel watch Vs watch && Autos vs Locals in visual studio
- DOM Explorer not working in VS2015 RC
- Visual Studio debugger - run until next user prompt
- Executing method on stop debugging
- Unable to Debug Application on Android Phone
- How to automatically build Class Library project in the same solution, when I 'F5' the Start Project
- Determining assembly containing definition of type for variable in Autos/Locals/Watch window?
- Problems with F# callstack in Visual Studio
- Visual Studio doesn't recognize boolean as variable
Related Questions in IMMEDIATE-WINDOW
- Format specifiers for VB.NET in Visual Studio in 2013
- Immediate Window constructor "Type 'class name' is not defined." issue
- MS Access VBA Create a immediate window popup or simulate one
- How do you call Assembly in Immediate Window?
- Memory Dump in Visual Studio
- Is it possible to install custom unhandled exception handler while debugging in VS 2008/2010?
- Visual Studio Immediate Window - Problems with Web Applications
- Breaking the endless loop from watch or immediate window
- Working in Visual Studio in Immediate Window: error CS0103: The name 'g' does not exist in the current context
- Modify the ASP.NET Session during debug?
- Wrong computation inside a loop
- Call C++ function inside VS watch or immediate window
- How to access property of Renci.SshNet.ForwardedPortRemote in C# with Visual Studio
- Why do we need the question mark in Immediate Window of VS?
- How can I run a foreach loop in the immediate window of visual studio?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Depending on the structure of your code and the language you are using you may be able to do something similar with Conditional Breakpoint abuse.
The idea is to use the Breakpoint condition to do an evaluation, basically an automated way of doing what you do in the immediate window.
int c = a + b; // some type of calculation
if (c == 5) // your test { // ERROR return; }
E.g. If you know the test c==5 is what is going wrong you can place a Conditional Breakpoint at that line:
if (c == 5) // your test
With the expression of some correct value:
c = 1
And then you won't go down the error condition path. Of course this doesn't always work, but can be useful in come circumstances.