-
-
Notifications
You must be signed in to change notification settings - Fork 374
Debugging Lime
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/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
you will need to rename the debug version of the library to the release name, it appears that the debug configuration does not check for debug builds of support libraries