When I run my project in Debug mode and I get an unhandled exception, I get
a window that says "An unhandled exception has occurred in your
application..." with Continue and Quit buttons. I would like for Visual
Studio to break on the line of code that caused the exception.
I have
<system.windows.forms jitDebugging="true" />
in my machine.config file and there is no application.config file.
Under the Debug -> Exception menu in Visual Studio, I have "If the exception
is not handled" set to "Break into the debugger" for all 4 exception types
listed. 4 1791
Mike,
You can set by right clicking a breakpoint or just the word Stop, what is a
little bit dangerous when you forget that.
I hope I understood you well and this helps?
Cor
"Mike W" <mi*******@nospam.msn.com> When I run my project in Debug mode and I get an unhandled exception, I get a window that says "An unhandled exception has occurred in your application..." with Continue and Quit buttons. I would like for Visual Studio to break on the line of code that caused the exception.
I have
<system.windows.forms jitDebugging="true" />
in my machine.config file and there is no application.config file.
Under the Debug -> Exception menu in Visual Studio, I have "If the exception is not handled" set to "Break into the debugger" for all 4 exception types listed.
That's true, if I knew ahead of time that a line of code would be causing an
exception, then I could put a breakpoint on that line, but I would probably
change the code so that it doesn't cause an exception.
Anyway, I want Visual Studio to break on ANY line of code that causes an
exception. I have seen it do this before, so I know it is possible. Can
anyone help with this??
"Cor Ligthert" <no************@planet.nl> wrote in message
news:Oj**************@tk2msftngp13.phx.gbl... Mike,
You can set by right clicking a breakpoint or just the word Stop, what is a little bit dangerous when you forget that.
I hope I understood you well and this helps?
Cor
Mike,
It is not impossible that the error apears in a part where is
<System.Diagnostics.DebuggerStepThrough()>
What is by instance in the designer part.
As well it can become because of an endless loop, than you don't know were
it is. This will happen in recursief methods by instance.
However just some guesses.
Cor
"Mike W" <mi*******@nospam.msn.com> schreef in bericht
news:uG**************@TK2MSFTNGP15.phx.gbl... That's true, if I knew ahead of time that a line of code would be causing an exception, then I could put a breakpoint on that line, but I would probably change the code so that it doesn't cause an exception.
Anyway, I want Visual Studio to break on ANY line of code that causes an exception. I have seen it do this before, so I know it is possible. Can anyone help with this??
"Cor Ligthert" <no************@planet.nl> wrote in message news:Oj**************@tk2msftngp13.phx.gbl... Mike,
You can set by right clicking a breakpoint or just the word Stop, what is a little bit dangerous when you forget that.
I hope I understood you well and this helps?
Cor
Mike, Under the Debug -> Exception menu in Visual Studio, I have "If the exception is not handled" set to "Break into the debugger" for all 4 exception types listed.
Did you try changing the "Debug - Exception - When the exception is thrown"
to "Break into the debugger" also?
As the dialog that you show (in your later post) is the one that Windows
Forms shows when you do not handle the Application.ThreadException event. In
other words Windows Forms is handling the exception for you, ergo it is not
a unhandled exception per se...
Hope this helps
Jay
"Mike W" <mi*******@nospam.msn.com> wrote in message
news:uy****************@TK2MSFTNGP09.phx.gbl... When I run my project in Debug mode and I get an unhandled exception, I get a window that says "An unhandled exception has occurred in your application..." with Continue and Quit buttons. I would like for Visual Studio to break on the line of code that caused the exception.
I have
<system.windows.forms jitDebugging="true" />
in my machine.config file and there is no application.config file.
Under the Debug -> Exception menu in Visual Studio, I have "If the exception is not handled" set to "Break into the debugger" for all 4 exception types listed.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs...
|
by: Serdar Kalaycý |
last post by:
Hi everybody,
My problem seems a bit clichè but I could not work around.
Well I read lots of MSDN papers and discussions, but my problem is a bit
different from them. When I tried to run the...
|
by: Andy Fish |
last post by:
Hi,
Using VS.NET 2003, when I use 'F5' to start debugging my web app, it
obviously attaches the IDE to IIS for server debugging. However, it also
seems to put IE into some kind of debugging mode...
|
by: Alex Clark |
last post by:
Hi All,
My system:
WinXP Pro, VS.NET 2003, SQL Server Personal Edition.
I'm having problems with my old favourite demon, SQL Debugging from within
VS.NET. I have to say I've found this...
|
by: Velvet |
last post by:
Can someone tell me to what process I need to attach to be able to step
through my classic ASP code in VS.net 2003. I'm working on an XP box with
IIS installed. I also have VS.net 2005 (The...
|
by: KevinGPO |
last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET
IDE. I just create a new "ASP.NET Web Application" and point to my local
webserver (IIS) of my website address. Then I...
|
by: phnimx |
last post by:
Hi ,
We have developed a number of plug-in .NET Library Components that we
typically deploy with our various applications by installing them into the
GAC.
Each of the applications contains an...
|
by: =?Utf-8?B?Z2FkeWE=?= |
last post by:
I can't get to debug on my local IIS using VStudio.net 2005 Prof. I can on
the development server. I get the msg 'the server does not support debugging
for asp.net...'
I have done the following...
|
by: jwwicks |
last post by:
C/C++ Programs and Debugging in Linux
This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
|
by: =?Utf-8?B?TWlrZSBHYWxl?= |
last post by:
VS 2008 initially didn't debug classic ASP.
SP1 fixes this in some ways. You can debug if you select the debug option
to "Start Without Debugging, then either attach the debugger manually or...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |