Link to home
Start Free TrialLog in
Avatar of thunderchicken
thunderchicken

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of posseke
posseke
Flag of Cabo Verde image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thunderchicken
thunderchicken

ASKER

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

Po$$e