?
Solved

How do you set a breakpoint on an array?

Posted on 2006-05-17
6
Medium Priority
?
274 Views
Last Modified: 2010-04-23
I have an array of 64, and I'd like to set a breakpoint on all items when it hits 3.  Anyone know how?  I'm not sure where it's setting it to it, since there is a massive recursive function.
0
Comment
Question by:thunderchicken
  • 4
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
posseke earned 500 total points
ID: 16698706
You can set conditional breakpoints in your 'loop' or wherever you are using the array, and then set the condition on array.index = 3 or something like that, I don't know what kind of arrau so I can't help you out with that.

To add a conditional breakpoint, add a normal one, then rightclick and choose condition.
Here you will be able to define your condition!

Hope this helps,

Greetz,

Po$$e
0
 
LVL 11

Author Comment

by:thunderchicken
ID: 16698727
There are about 60 places the array is being set, I'm looking for a way to set a global breakpoint, not in 60 different places.
0
 
LVL 2

Expert Comment

by:posseke
ID: 16698777
lol I understand the problem, especially if it concerns massive recursivity :)
Find a good spot for the breakpoint and then add the condition

Greetz,

Po$$e
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:posseke
ID: 16698821
Ow lol I seem to have misread your comment there, let me think about it :)
But anyway, why don't you use a Watch?
Just select the array variable, right click and 'Add Watch'

That way, you can see all items of your array when it is being used.

Add a breakpoint somewhere, add a watch on your array, and when breakpoint hits, look at watch to see all items in the array

Hope this is what you want?

Greetz,

po$$e
0
 
LVL 11

Author Comment

by:thunderchicken
ID: 16698856
Somewhat, but when the function goes through over a million interations, it would kind of take a while.
0
 
LVL 2

Expert Comment

by:posseke
ID: 16698930
Then put a condition on your breakpoint that checks if array(3) isNot Nothing

Po$$e
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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 …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

850 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