Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Trace for debug lua

branch: master
Octocat-spinner-32 README Add blog link May 21, 2013
Octocat-spinner-32 main.lua reset trace.on March 21, 2012
Octocat-spinner-32 trace.lua reset trace.on March 21, 2012
README
It's trace tool for lua.

You can use trace.trace("varname") to trace the code execute. For example, if you run "lua main.lua" , you may got

main.lua        :       12
main.lua        :       4
n       local   100
main.lua        :       7
main.lua        :       4
n       local   99
main.lua        :       7
main.lua        :       4
n       local   98
main.lua        :       7
main.lua        :       13
n       global  nil
s       local   9.3326215443944e+157

http://blog.codingnow.com/2012/02/lua_trace.html  (In Chinese)

Something went wrong with that request. Please try again.