This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

View Lua dissector’s console output on Windows 10

0

This is kind of a newbie question: I am writing a custom dissector with Lua. For debugging, I need to print to the console using Lua's print() function. Under Linux, I can see this output on the console if I start Wireshark from the console. How can I see that output when developing on Windows 10 and launching Wireshark from a cmd shell?

asked 18 Nov '16, 07:50

patrick_oppermann's gravatar image

patrick_oppe...
466611
accept rate: 0%


One Answer:

1

Not sure if this works for Lua, but in general, Preferences -> Advanced -> gui.console_open. Modify the setting to be other than NEVER.

answered 18 Nov '16, 08:02

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Cool, thank you for this hint, however, the GUI console does not display any of my log output. I ended up using the Lua console (Tools -> Lua -> Console) that I can write to using the info() and warn() functions.

(08 Mar '17, 05:46) patrick_oppe...