When stepping through code, to find where an error is thrown, the problem is
that I have to step threw the statement that causes the error, and if it's
in a class that's instantiated from the main program, then I may miss the
statement that causes the error.
How can I get the debugger to stop right at the statement that causes the
error. 4 1437
If the class is part of the same project then you can step into it with F11
instead of F10 (assuming you are using the default key mapping for VS.Net)
"c# newbie" <no****@leave.m e.alone> wrote in message
news:71******** *************** *******@news.te ranews.com... When stepping through code, to find where an error is thrown, the problem
is that I have to step threw the statement that causes the error, and if it's in a class that's instantiated from the main program, then I may miss the statement that causes the error.
How can I get the debugger to stop right at the statement that causes the error.
If the class is part of the same project then you can step into it with F11
instead of F10 (assuming you are using the default key mapping for VS.Net)
"c# newbie" <no****@leave.m e.alone> wrote in message
news:71******** *************** *******@news.te ranews.com... When stepping through code, to find where an error is thrown, the problem
is that I have to step threw the statement that causes the error, and if it's in a class that's instantiated from the main program, then I may miss the statement that causes the error.
How can I get the debugger to stop right at the statement that causes the error.
try CTRL + ALT + E, which will take you to the Debug exceptions window.
there you can tell visual studio to immediately break on any exception or
any .net exception etc. you can also find this under Debug -> Exceptions...
let me know if you have other questions or if this doesn't help.
jeff.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
Tell VS.NET to break when an excepion is thrown. Look on the
Debug/Exceptions menu.
Regards,
Aaron Queenan.
"c# newbie" <no****@leave.m e.alone> wrote in message
news:71******** *************** *******@news.te ranews.com... When stepping through code, to find where an error is thrown, the problem
is that I have to step threw the statement that causes the error, and if it's in a class that's instantiated from the main program, then I may miss the statement that causes the error.
How can I get the debugger to stop right at the statement that causes the error.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fernando Rodríguez |
last post by:
Hi,
I was trying to step through a first attemp of multithreaded script (see
below), with PythonWin, but I'm gettign a very strange error:
---------------------------------------------------------------------------------
import threading
times = 100
delay = 10000
|
by: c# newbie |
last post by:
When stepping through code, to find where an error is thrown, the problem is
that I have to step threw the statement that causes the error, and if it's
in a class that's instantiated from the main program, then I may miss the
statement that causes the error.
How can I get the debugger to stop right at the statement that causes the
error.
|
by: | ov |
last post by:
Hi,
My application includes a class library which has both managed C++ and
unmanaged C++ code.
The unmanaged C++ code includes only one class with both virtual
methods and non-virtual methods.
When I use the debugger I am able to step into methods that are
non-virtual, however, when I try to step into methods which are
virtual I receive the following message: "There aren't source code
avalaible for the current location".
The unmanaged...
|
by: John Black |
last post by:
Hi,
I wonder if there is any good way in debugging the code not steping
into STL code, it is easy to do in normal statement, just click "step
over", but when there are some STL type variable on the function
argument list, I do not find a way to skip stepping into STL.
Any suggestion?
|
by: craig |
last post by:
Is it possible to step into the code of a referenced .net assembly from
within a project that is being debugged?
Thanks!!!
| |
by: craig |
last post by:
When stepping though C# code in Visual Studio, often times a line of code
will
cause an event handler to be run. However, it appears that the debugger
will not automatically step into that event handler. Is there a way to
cause it to step into event handlers automatically?
Thanks!
|
by: David C |
last post by:
This is very strange. Say I have code like this. I am simply looping
through a collection object in a foreach loop.
Course course = new Course();
foreach(Student s in course.Students)
{
Console.WriteLine(s.StudentID);
}
|
by: NewToCPP |
last post by:
There are several occations where we write onto someone else' memory
region. Is there any debugging mechanism to find out which part of the
code is causing this problem?
|
by: mednyk |
last post by:
T-SQL Debugger Doesn't Allow Stepping Through Stored Procedures
And there is no other procedure with the same name owned by dbo or any
other users.
There is no error messages also, it just completes procedure and
returns result
server:
Microsoft SQL Server 2000 - 8.00.818 (Intel X86)
Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build
2195: Service Pack 4) and I don't know how do determine Client's
version.
|
by: JPS |
last post by:
Does anyone know how to add a VB class to a C# project and then
instantiate the Vb object and step through the code?
Can we do tihs with a VB DLL?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |