How to hunt down nil values from xcode console

I am running my app on ipad while it is connected so I can watch for issues in the xcode organizer console. One item that keeps coming up is the following error.

[text]unknown UIKitApplication:com.myapp.appname[0xbb42][9874] : Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to index upvalue ‘?’ (a nil value)[/text]

Wonder if there is any good way to hunt stuff like this down if you think you know the object causing the issue. [import]uid: 7501 topic_id: 20955 reply_id: 320955[/import]

I solved one of these last night. It wasn’t very clear, but I started by checking everything that was sent(up) to a function by commenting out code until I isolated the incident. I ended up fixing it by not sending that particular stuff up but just loading it into local variables and just referencing those variables when it went upwards.

Good luck duder!

[import]uid: 100299 topic_id: 20955 reply_id: 82746[/import]