Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to track a value in Visual Studio 2012

Posted on 2014-01-15
4
Medium Priority
?
238 Views
Last Modified: 2014-01-19
Can somone please tell me how to track a variable or control.value when it changes and cause a break in the program. I use to know how to do this in VB6 but not sure in VS 2012.

Thanks,
0
Comment
Question by:BlakeMcKenna
  • 2
4 Comments
 
LVL 40
ID: 39784195
In my opinion, this feature of VB6 is the only thing I lost when moving from VB6 to VB.NET 13 years ago.

Because .NET is always compiled, while VB6 was interpreted during development, there was no way to implement that feature in Visual Studio.

The only thing you can do that approach that is to set conditional breakpoints at various points in the code. That won't catch the exact line that cause the problem, but if done properly, you will know approximatively where it occurs.

To set a conditional breakpoint, set a standard breakpoint and right click on the red dot in the margin. Select condition and use it as you used to set a conditional breakpoint in VB6.

For everything else, VB.NET is always superior to VB6
0
 
LVL 5

Expert Comment

by:advfinance
ID: 39784888
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 39785361
@advfinance

You need to be in C or C++ to use that feature, since it requires a pointer and pointers are not available in VB.
0
 

Author Closing Comment

by:BlakeMcKenna
ID: 39793413
Thanks James!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question