From: John L. <jla...@gm...> - 2012-08-29 03:11:36
|
On Mon, Aug 27, 2012 at 6:37 PM, Milind Gupta <mil...@gm...> wrote: > Hi, > I have a lua program in which I load a lua script as a string > (loadstring) and then execute it. Is it possible to debug this script in > wxLua.exe? How would I add a breakpoint in there? > Open your program in wxLua by calling. $ wxLua -o program.lua The Debug menu has items for executing and debugging it. To set breakpoints click on the margin and red squares appear, be sure to put them on code lines. Then click Debug->Start Debugging and a green arrow appears on the line where the debugger is stopped. Press F11 to step, click "View call stack" to view the stack and browse all variables in Lua, you can also set watches to print variable values (when they're in scope). Regards, John |