tags:

views:

91

answers:

1

I have lua function which accept the arguments. I want to get the name of the argument so that I can log the argument along with error.

Any idea how to get argument name in lua?

+6  A: 

Use debug.getlocal.

lhf
Very cool didn't know of this. Deleting my answer because I was wrong.
ponzao