LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

Trace and message window

The trace output box is used to write text. A script is not writen to display text but for data processing and treatment. However, the debug and message window is useful in debugging phase to follow the code execution and the variable evolution. The LoriotPro LUA library offers display functions that write in this window. Example : lp.Trace(« text ») ;

The debug window can be opened from the main menu view option.

The following script search in the LoriotPro directory the first router and display its IP address in the debug message window.

lp_value = 0;
lp_buffer ="error";router_id=lp.GetFirstRouter();
if router_id~=nil then
lp.Trace("The first router in the directory tree\n");
lp.Trace(router_id);
lp_buffer="ok";
end

The debug message window after the execution of the script:


www.loriotpro.com