lua-users home
lua-l archive

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

> ----- Original Message ----
> From: Wesley Smith <>
> To: Lua list <>
> Sent: Tue, January 26, 2010 6:50:02 PM
> Subject: Re: Debugging coroutines
> Manipulating code like this sounds quite intrusive for a simple
> debugging operations like stepping through code.  It would be nice if
> there was a coroutine.resume hook.  Maybe something like this could be
> possible for Lua 5.2?

Perhaps I can just catch any calls to coroutine.resume with a LUA_HOOKCALL, and then get a pointer to the courotine with lua_getlocal? But then I won't know how to deal with coroutine.wrap. I've never used it, and am completely new to Lua. Thanks all.