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? wes