https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5976
Tony Trinh <tony19@xxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |tony19@xxxxxxxxx
Resolution| |WONTFIX
--- Comment #2 from Tony Trinh <tony19@xxxxxxxxx> 2012-01-09 15:25:15 PST ---
Marked as "WONTFIX" since an easy workaround (just learned) is to use the
"require" keyword (as shown below). Note that one of the changes in Lua 5.2 is
to force the use of "require" to access the 'debug' library [1].
Example 1: Lua code to print traceback
local function foo()
local d = require 'debug'
print(d.traceback())
end
Example 2: Command to enter the Lua shell[2] (type 'cont' to exit):
$ echo "(require 'debug').debug()" > tmp.lua && tshark -v
-Xlua_script:tmp.lua
lua_debug> print 'hello world!'
hello world!
lua_debug> print( ByteArray.new('112233'):len() )
3
lua_debug> cont
TShark 1.7.1 (SVN Rev 39998 from /trunk)
Copyright 1998-2011 [...]
$
The echo argument above requires double-quotes in OSX but not in Windows.
[1]: http://www.luafaq.org/#T8.1.2
[2]: http://www.lua.org/manual/5.2/manual.html#pdf-debug.debug
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.