How do you set a breakpoint on an array?

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.
LVL 11
thunderchickenAsked:
Who is Participating?
 
possekeCommented:
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
 
thunderchickenAuthor Commented:
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
 
possekeCommented:
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
possekeCommented:
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
 
thunderchickenAuthor Commented:
Somewhat, but when the function goes through over a million interations, it would kind of take a while.
0
 
possekeCommented:
Then put a condition on your breakpoint that checks if array(3) isNot Nothing

Po$$e
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.