[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Scite-debug: function call on multiple lines
- From: Shmuel Zeigerman <shmuz@...>
- Date: Fri, 23 Nov 2007 00:11:35 +0200
local b = ""
b = string.sub(
"abc", 2)
print(b)
The above code has a breakpoint on its line 2.
When it stops on the breakpoint and is continued via either
"step" or "step over", the following error is produced:
lua: mytest2.lua:2: attempt to call field 'sub' (a table value)
stack traceback:
mytest2.lua:2: in main chunk
[C]: ?
However, if the function call isn't split on two lines,
then the script runs just fine:
local b = ""
b = string.sub("abc", 2)
print(b)
Comments?
--
Shmuel