lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> My documentation reads like this:
>
>  debug.traceback ([thread,] [message [, level]])
>
> which means that you cannot give a level without a message.
>
> -- Roberto

My bad. I missremembered my testcase:

-----
local c = coroutine.create( function() coroutine.yield() end )
coroutine.resume(c)
print( debug.traceback(c,nil,1) )
-----

Output:
-----
nil
-----

Expected:
-----
stack traceback:
        a.lua:1: in function <a.lua:1>
-----