之前写了个简单的web服务,用于收集客户端的错误代码。帮助发现,修复bug
今天发现,经过luajit后的代码,报错的地方和之前的lua代码不太一样。也没有足够的debug info。后来看了下luajit得命名参数。
发现了luajit -b -g

imbahom@imbahom_MBP ~
0 % luajit -b
Save LuaJIT bytecode: luajit -b[options] input output
  -l        Only list bytecode.
  -s        Strip debug info (default).
  -g        Keep debug info.
  -n name   Set module name (default: auto-detect from input name).
  -t type   Set output file type (default: auto-detect from output name).
  -a arch   Override architecture for object files (default: native).
  -o os     Override OS for object files (default: native).
  -e chunk  Use chunk string as input.
  --        Stop handling options.
  -         Use stdin as input and/or stdout as output.