Repository navigation
Debugging Lime
Todd Brannam edited this page Jul 3, 2014
·
5 revisions
in order to step into SDL code, you need to rebuild lime with -Ddebug parameter in addition -debug
lime rebuild -debug -verbose -Ddebug
if you modify any of the source for the supporting libraries while debugging, you will want to modify the build script which re-untar's the source files when builds occur.
/usr/lib/haxe/lib/nme-dev/1,3,2/tools/Build.hx
Script file to edit, in my case I needed to edit buildSDL2 function to exclude //untar(dir,"SDL2-" + inVer + ".tgz"); //copy("patches/SDL2/SDL_cocoawindow.m", dir+"/src/video/cocoa/SDL_cocoawindow.m");
lime rebuild command executes via precompiled neko build script, so you need to recompile Build.hx cd /usr/lib/haxe/lib/nme-dev/1,3,2/tools/build haxe compile.hxml