ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Lua debug statement not working in Wireshark 3

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Fri, 26 Apr 2019 08:06:14 -0500


On Fri, Apr 26, 2019 at 4:20 AM David Aldrich <david.aldrich.ntml@xxxxxxxxx> wrote:
Hi

Since upgrading to Wireshark 3 my lua dissector reports error:

"attempt to call global 'debug' (a table value)"
 
for line:

debug("PRB #" .. prb_index)

Why is this? (Sorry if this has been asked before).

See the 3.0 Release Notes:


Particularly the "Major API Changes" section which says:

Lua: the various logging functions (debug, info, message, warn and critical) have been removed. Use the print function instead for debugging purposes.