Re: [Wireshark-dev] Luacov with Wireshark Lua dissector plugin

2018-02-04 Thread Shakthi Kannan
Hi, --- On Fri, Feb 2, 2018 at 9:01 PM, Peter Wu wrote: > It looks like "console.lua" is setting the "debug" function. Perhaps > those "helpers" should be removed or namespaced, as a workaround you can > just comment the debug function: > > -- function debug(x) ... end I tried the above, but

Re: [Wireshark-dev] Luacov with Wireshark Lua dissector plugin

2018-02-02 Thread Peter Wu
On Thu, Feb 01, 2018 at 04:14:33PM +0530, Shakthi Kannan wrote: > 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/is

Re: [Wireshark-dev] Luacov with Wireshark Lua dissector plugin

2018-02-01 Thread Shakthi Kannan
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:/

[Wireshark-dev] Luacov with Wireshark Lua dissector plugin

2018-01-29 Thread Shakthi Kannan
Hi, I would like to see the code coverage when I run tshark for a packet capture with a Lua dissector plugin. The command used is as follows: $ tshark -r input.pcap -X lua_script:dissector.lua I came across the following StackOverflow post, but, it doesn't give much details: https://stacko