From: John L. <jla...@gm...> - 2012-05-17 20:55:55
|
On Thu, Jan 5, 2012 at 6:36 PM, Milind Gupta <mil...@gm...> wrote: > Hi, > Posting the message again to find out if it is possible to watch value > of keys inside a table. When I tried that the watch just gives an error > message saying: "string:Lua:Syntax error during pre-compilation" ? > Just a question, does everybody just use the debug library to debug > their code in Lua or is there a good graphical debugger that can help. I > tried Lua Eclipse, it didn't work for me, cannot make Scite work to debug in > Linux but even in windows its debugging is more command line rather than > graphical. WxLua seemed to be the only solution that was working good but > then I encountered this problem? Sorry about the delay... Yes there is a problem, but also a temporary fix. Unfortunately the remote debugger expression evaluator does double duty, a) run code like "a = 1+2" to set a varible in the debugger Lua state or to get variable values. So, when it finds a '.' it thinks there is an expression to evaluate not a variable. The solution, put a watch on these two things: "a = MyTable.Key" : should say Ok on the value side "a" : should be the value of MyTable.Key I just have to find the time to separate the functionality of the two things so they both work. Regards, John |