[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Debugging coroutines
- From: Per Bull Holmen <pbholmen@...>
- Date: Tue, 26 Jan 2010 11:29:54 -0800 (PST)
> ----- Original Message ----
> From: Wesley Smith <wesley.hoke@gmail.com>
> To: Lua list <lua@bazar2.conectiva.com.br>
> 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.