Does anyone know why some genius decided that data based breakpoints are not
supported in C#/ vb.net debugging?
Is there some technical reason Or has it been done to make breakpointing
more fustrating than ever?
--
Br,
Mark Broadbent
mcdba , mcse+i
============= 5 5091
"Mark Broadbent" wrote : Does anyone know why some genius decided that data based breakpoints are
not supported in C#/ vb.net debugging? Is there some technical reason Or has it been done to make breakpointing more fustrating than ever?
Can't you use the breakpoint condition ? What do you exactly need ?
--
Francois Beaussier Fr******@3ie.or g.remove
I would prefer to have been able to do the data breakpoint, but I have been
trying and failing to get the condition /has changed to work. This may be my
stupidity *but* the documentation for this is very sparse and does not give
me a working example. I can get the "is true" condition to work fine but not
the has changed. If you can give my a sample code and what I should put in
the condition for the has changed condition I will be grateful. Otherwise my
foot is going through this Screen.
Thx
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Francois Beaussier" <Fr******@3ie.o rg.invalid> wrote in message
news:OK******** ******@TK2MSFTN GP10.phx.gbl... "Mark Broadbent" wrote :
Does anyone know why some genius decided that data based breakpoints are not supported in C#/ vb.net debugging? Is there some technical reason Or has it been done to make breakpointing more fustrating than ever?
Can't you use the breakpoint condition ? What do you exactly need ?
-- Francois Beaussier Fr******@3ie.or g.remove
"Mark Broadbent" wrote : I would prefer to have been able to do the data breakpoint, but I have
been trying and failing to get the condition /has changed to work. This may be
my stupidity *but* the documentation for this is very sparse and does not
give me a working example. I can get the "is true" condition to work fine but
not the has changed. If you can give my a sample code and what I should put in the condition for the has changed condition I will be grateful. Otherwise
my foot is going through this Screen.
Lets try :)
Create a new Console application.
Copy paste the following in Class1.cs
---8<---
using System;
namespace ConsoleApplicat ion1
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
int i = 0, j = 0;
while (true)
{
Console.WriteLi ne("{0} {1}", i, j);
if (j > 50)
{
i++;
}
j++;
}
}
}
}
---8<---
Put a breakpoint on the Console.WriteLi ne(...) statement
Go in the properties for this breakpoint and set the condition to "i"
and select "has changed".
Compile and run. The application will only break when i has changed
ie at the 50th Console.WriteLi ne(...)
Does that suit your needs ?
--
Francois Beaussier Fr******@3ie.or g.remove
You may use
System.Diagnost ics.Debugger.Br eak();
"Mark Broadbent" <no************ @no-spam-please.com> wrote in message
news:OZ******** ********@TK2MSF TNGP10.phx.gbl. .. Does anyone know why some genius decided that data based breakpoints are
not supported in C#/ vb.net debugging? Is there some technical reason Or has it been done to make breakpointing more fustrating than ever? --
Br, Mark Broadbent mcdba , mcse+i =============
merci Francois. That worked how I expected, do not know why it wasnt working
for me, but seems to work fine now. It would be nice to be able to set a
break on the change of variable (i.e. not dependant upon a particular line)
but at least this now works as I expected. (really dont know where I was
going wrong because I could have sworn I was doing this in my code)
Anyway Thanks again. :)
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Francois Beaussier" <Fr******@3ie.o rg.invalid> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. . "Mark Broadbent" wrote :
I would prefer to have been able to do the data breakpoint, but I have been trying and failing to get the condition /has changed to work. This may
be my stupidity *but* the documentation for this is very sparse and does not give me a working example. I can get the "is true" condition to work fine but not the has changed. If you can give my a sample code and what I should put
in the condition for the has changed condition I will be grateful.
Otherwise my foot is going through this Screen.
Lets try :)
Create a new Console application. Copy paste the following in Class1.cs
---8<--- using System; namespace ConsoleApplicat ion1 { class Class1 { [STAThread] static void Main(string[] args) { int i = 0, j = 0; while (true) { Console.WriteLi ne("{0} {1}", i, j); if (j > 50) { i++; } j++; } } } } ---8<---
Put a breakpoint on the Console.WriteLi ne(...) statement Go in the properties for this breakpoint and set the condition to "i" and select "has changed".
Compile and run. The application will only break when i has changed ie at the 50th Console.WriteLi ne(...)
Does that suit your needs ?
-- Francois Beaussier Fr******@3ie.or g.remove
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Grant Schenck |
last post by:
Hello,
I'm trying to figure out how to debug a very simple COM object I developed
in VB.
I'm very new to VB and ASP so I have a lot to learn.
That said, I found what I thought was perfect article which covers this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;299633#2
|
by: news.paradise.net.nz |
last post by:
I have been developing access databases for over 5 years.
I have a large database and I have struck this problem with it before
but can find nothing in help or online. Access 2000
I have a query that will run fine without any criteria but as soon as I
add any criteria it gives a "Data type mismatch" error.
As soon as I remove any criteria it runs perfectly.
I know this query is based on another query but I have other processes
based on...
|
by: fred |
last post by:
What has happened to my breakpoints?
Whenever I start my application from the IDE in Visual Studio then all of
the breakpoints show a "?" and a comment says "The breakpoint will not
currently be hit. No symbols have been loaded for this document."
Needless to say the program does not stop at the breakpoints anymore.
What have I done to disable this breakpoints or more important how do I get
them to work again.
Thanks,
|
by: MSK |
last post by:
Hi,
Continued to my earlier post regaring "Breakpoints are not getting hit"
, I have comeup with more input this time.. Kindly give me some idea.
I am a newbie to .NET, recently I installed .NET. I could not debug
using breakpoints,
breakpoints are not getting hit, but the application is working fine
with out any issue.
|
by: jeem |
last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4
application with an extensive UI... I am attempting to debug the
application and am setting breakpoints in 4 different *.py files..
Breakpoints in the main file are working OK, but any breakpoints in
imported files are not... The three imported files are open in Komodo
and are in the same local directory as the main file (in the
python24/Lib/site-packages tree)... The code...
| |
by: Jeff |
last post by:
Hey
How can I get a list of breakpoints in Visual Studio 2005, while the loaded
solution is in Edit mode (not running or not debugging)...
I'm trying to learn thousands of uncommented C# code and if I had some kind
of bookmarks (breakpoints) I then could more easly scroll to those specific
lines, instead of scrolling thousands of lines and very easly scroll past
the line I was looking for...
|
by: harterc1 |
last post by:
I have a form containing a listbox that when a line is selected in it, it opens another form containing data based on the selection (using a query that is dynamically altered for the new form's recordsource)
ANYWAYS, the form takes about 30 seconds to load.
The tables involved in the recordsource query total about 12,000 records which isn't nearly enough to slow the process down this much.
I set breakpoints and traced the code to the...
|
by: JohnR |
last post by:
I understand the VS2005 still doesn't support data breakpoints in VB. My
question is this.. does anybody know of a 3rd party product that DOES
support data breakpoints in VB?
As an aside, does anyone know why it seems to be so hard to impliment data
breakpoints in VB? It is such a valuable tool.
Thanks
|
by: =?Utf-8?B?TG9zdCBJbiBUaGUgV29vZHM=?= |
last post by:
I've seen a ton of posts about similar problems, but none of the solutions
were effective. I've been maintaining this VB code for 3 years, and this is
the first time this has happened. It seems that the first one or two
breakpoints encountered trigger, but after that, none of my other breakpoints
work. Also, when the breakpoints stop working, the debugger seems to lose
track of what module the executing code is in, because when the fatal...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |