print scope
Hello, I'm a newbie for lua, even though lua is very powerful, fortunately there is the forum to find some answers to some strange behavior for me.
I'm doing some test on my dissector, and I'm using the print function.
I can print until I reach the line 2 :
- print("AA") ====> *print correctly
- gip_protocol = Proto("TGIP", "TGIP Protocol")
- print("AB") ====> never *print
Is there some sort of scope for the print fucntion ?
I created a very basic lua script:
... and then ran
tshark -v
; both statements printed, e.g.:sorry I posted too fast. By doing the same test as cmaynard, I got the same problem; In fact I was running the following command line
And looking into the file Test.txt I saw :
... The problem is that I did not saw the error stream on this file, but on the command window there was :
Refering to the line
What I don't understand is that even with this error the script continue, and some print contained in functions are still working: but no more the ones in ...(more)