add debugging feature for self defined lua dofile()