[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Odd behaviour of debugging hooks
- From: "Clemens Hofreither" <clemens.hofreither@...>
- Date: Mon, 11 Feb 2008 19:17:42 +0100
Hello there,
I've been playing around with the Lua debugging interface, and it seems quite powerful.
However, I have stumbled upon something which seems very odd to me and might be a bug.
First, have a look at the test script. I have tried to reduce it to be as short as possible while
still illustrating the problem. It's online at:
http://pastebin.com/m34e6588c
When running this, following output results:
C@trace.lua(40): test
C@trace.lua(36): WrapFunc
C@trace.lua(29): WrapFuncInner
R@trace.lua(29):
R@trace.lua(40): test
R@trace.lua(0):
As you can see, the WrapFunc function never gets its return event reported to the debugging
hook (and hence the indentation becomes imbalanced). If I instead call WrapFuncInner
directly, this does not happen.
This is Lua 5.1.3 on Windows.
So, am I Doing Something Wrong or is this a bug?
Regards,
Clemens