Wireshark mailing list archives
Re: Luacov with Wireshark Lua dissector plugin
From: Shakthi Kannan <shakthimaan () gmail com>
Date: Thu, 1 Feb 2018 16:14:33 +0530
Hi,
I tried using the following in the Wireshark dissector Lua plugin:
local luacov = require("luacov")
But, the plugin fails to load with the message
"~/.luarocks/share/lua/5.1/luacov/hook.lua:26:attempt to index global
'debug' (a function value)". I had filed a query to Luacov at:
https://github.com/keplerproject/luacov/issues/55
In luacov/hook.lua, the following debug function is being invoked:
-- Get name of processed file
local name = debug.getinfo(level, "S").source -- line #26
The Luacov author mentions that Wireshark is invoking the 'debug'
function instead of the 'debug' module. How can this be resolved?
Thanks!
SK
--
Shakthi Kannan
http://www.shakthimaan.com
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: Luacov with Wireshark Lua dissector plugin Shakthi Kannan (Feb 01)
- Re: Luacov with Wireshark Lua dissector plugin Peter Wu (Feb 02)
- Re: Luacov with Wireshark Lua dissector plugin Shakthi Kannan (Feb 04)
- Re: Luacov with Wireshark Lua dissector plugin Peter Wu (Feb 02)
