473,231 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Visual C# 2005: How can I trigger a breakpoint upon a class member variable change?

Hi,

I am using Visual C# 2005 and I like to setup breakpoint that pause
execution upon a class variable change.

Is that possible?

Thank you,

Max


Aug 21 '07 #1
5 2255
Hi,
Set your BP and right click in the red indicator, you will get a list of
options
"Max2006" <al*******@newsgroup.nospamwrote in message
news:eX**************@TK2MSFTNGP02.phx.gbl...
Hi,

I am using Visual C# 2005 and I like to setup breakpoint that pause
execution upon a class variable change.

Is that possible?

Thank you,

Max


Aug 21 '07 #2

I am aware of those options. I don't know how to specify: **"break at the
palce that assigns new value to this variable"**.

I remember we had this feature with old VB6. DO we still have it?

Thanks for help,
Max
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:eP**************@TK2MSFTNGP04.phx.gbl...
Hi,
Set your BP and right click in the red indicator, you will get a list of
options
"Max2006" <al*******@newsgroup.nospamwrote in message
news:eX**************@TK2MSFTNGP02.phx.gbl...
>Hi,

I am using Visual C# 2005 and I like to setup breakpoint that pause
execution upon a class variable change.

Is that possible?

Thank you,

Max



Aug 21 '07 #3
Hello Max,

me either not aware of that feature but you can place breakpoints in
the place your code changes that variable:)
or just add that variable to watch list and step over your whole
application's run and see in watch list where is the place that
changes that variable.

On Aug 22, 12:19 am, "Max2006" <alanal...@newsgroup.nospamwrote:
I am aware of those options. I don't know how to specify: **"break at the
palce that assigns new value to this variable"**.

I remember we had this feature with old VB6. DO we still have it?

Thanks for help,
Max

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
messagenews:eP**************@TK2MSFTNGP04.phx.gbl. ..
Hi,
Set your BP and right click in the red indicator, you will get a list of
options
"Max2006" <alanal...@newsgroup.nospamwrote in message
news:eX**************@TK2MSFTNGP02.phx.gbl...
Hi,
I am using Visual C# 2005 and I like to setup breakpoint that pause
execution upon a class variable change.
Is that possible?
Thank you,
Max

Aug 22 '07 #4
Hi Max,

This type of breakpoint is called data breakpoint, which is a type of
hardware breakpoint.

The normal breakpoint is called software breakpoint, which is implemented
by inserting a "int 3" instruction in the function start. So if the code
executed the "int 3", it will notify the debugger that a breakpoint is
triggered. To monitor the data variable change, it is different from normal
breakpoint, because it is not code. "int 3" trick can not be used here. We
need hardware support from CPU. So x86 CPU provided the debug registers to
help debugger implement data breakpoints for this purpose.

However, because the GC will move the objects frequently in managed code,
it makes the data breakpoints almost impossible for managed objects data.
That's why data breakpoint is only supported for native debugging
currently. Our Visual Studio debugger team developer confirmed this in his
blog below:
"Data Breakpoints"
http://blogs.msdn.com/greggm/archive...30/124161.aspx

So we can not set data breakpoint on class member variable yet. Hope this
helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 22 '07 #5
Hi Max,

Have you reviewed my reply to you? Does it make sense to you? If you still
need any help or have any concern, please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 24 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
4
by: RSH | last post by:
I have a project that we have had in 2005 for a couple months now and everything has been working fine. Now today I open it up and get the latest version from SourceSafe and I made a few changes...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.