AS3 debugging

Hi, I’ve found some bugs in my project, where it says TypeError: Error #1010 (variable undefined)

But how can I know which one? I’m trying to use the debug tool in CS4 and when the error occurs, I get the position. Then I try to trace the variables in that area, but none are undefined. So how can I know exactly which one it is?