add lua debugger support(incomplete, only works correct under console(launch app with -debug)), need more works