During investigation crash of my cocos2d-x app I faced with problem that debugger not stops in AppDelegate.cpp class at all.
My assumption is: debugger could not connect before time when this code has been executed.
Is my assumption correct? Is any workaround there?
I agree with fadden you can add call
sleep
(orusleep
) function. In casecocos2d-x
you should put it in beginning ofvoid Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
functionAlso you should not forget to include
<unistd.h>
in caseusleep