LUA debug_output
Posted: Thu Jul 21, 2011 11:04 pm
I recently upgraded ZEUS and had a LUA macro that worked fine. In the new ZEUS it does not work.
I went to debug (turned on debugging) and as soon as the code hits the debug_output function it crashed. debug_output used to work. In fact, I did not add the debug_output code, it had been there from when I wrote the function.
debug_output(string) successfully displays the string THEN it crashes.
For example, I run macro on this line
test line
start of function:
I went to debug (turned on debugging) and as soon as the code hits the debug_output function it crashed. debug_output used to work. In fact, I did not add the debug_output code, it had been there from when I wrote the function.
debug_output(string) successfully displays the string THEN it crashes.
For example, I run macro on this line
test line
start of function:
Output ends with:function replace_string()
local tab_length = 2
local tab_chars = ' ' -- equal tab_length spaces
-- write out the comment string
local ln=get_line_text()
debug_output(ln)
MoveLineHome()
If I comment out the debug_output(ln) the Output continues as:Debug: get_line_text
Debug: debug_output
test lineDebug: stop_macro
Macro script generated '10' Debug, Error and/or Warning message(s).
How can I get debugging of some kind working so I can fix my code?Debug: get_line_text
Debug: MoveLineHome