Howto Debug js-binding on android

Hello, I’m trying to debug a js-binding project on an android device (because I got an error on android running my game).

I’m following the https://github.com/cocos2d/cocos2d-x/tree/develop/cocos/scripting/javascript/script/debugger instructions. But after compiling with APP_CPPFLAGS += DCOCOS2D_DEBUG=1DJSB_ENABLE_DEBUGGER=1 on my Application.mk and seting up the firefox browser, I can’t connect to the device.

Following the instructions it tells me to connect to 127.0.0.1 on port 5086, do I need to change the port? do I need to redirect localhost port to adb port?

Any help will be apreciated.

This is the logcat output.

12-30 11:27:59.988: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4881674256476, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:00.038: D/WeatherTIMESERVICE(3508): android.intent.action.TIME_TICK
12-30 11:28:00.048: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4881736980514, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:00.058: I/WeatherWidgetProviderPhone(3508): Intent content:21
12-30 11:28:00.068: I/WeatherWidgetProviderPhone(3508): appWidgetId=3
12-30 11:28:00.068: I/WeatherWidgetProviderPhone(3508): onUpdate1 widgetId=3
12-30 11:28:00.068: I/WeatherWidgetProviderPhone(3508): step1
12-30 11:28:00.078: I/WeatherWidgetProviderPhone(3508): widget_hspan=4 widget_vspan=3
12-30 11:28:00.078: V/WeatherWidgetProviderPhone(3508): setWidgetInfo_4x3 widgetCursor, widgetid = 3
12-30 11:28:00.088: V/WeatherWidgetProviderPhone(3508): setWidgetInfo_4x3 weatherCursor, widgetid = 3
12-30 11:28:00.088: I/WeatherWidgetProviderPhone(3508): No information in the contentprovider
12-30 11:28:00.088: V/WeatherWidgetProviderPhone(3508): enableDefaultWidgetStatus, time[1] = 11:28
12-30 11:28:01.518: D/AndroidRuntime(1706): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-30 11:28:01.518: D/AndroidRuntime(1706): CheckJNI is OFF
12-30 11:28:01.518: E/AndroidRuntime(1706): readIfwiVersion() open dev file error: 13
12-30 11:28:01.518: I/AndroidRuntime(1706): Kernel Release Version: 3.4.21-00003-gca7d65c
12-30 11:28:01.518: D/dalvikvm(1706): Trying to load lib libjavacore.so 0x0
12-30 11:28:01.528: D/dalvikvm(1706): Added shared lib libjavacore.so 0x0
12-30 11:28:01.528: D/dalvikvm(1706): Trying to load lib libnativehelper.so 0x0
12-30 11:28:01.528: D/dalvikvm(1706): Added shared lib libnativehelper.so 0x0
12-30 11:28:01.618: D/AndroidRuntime(1706): Calling main entry com.android.commands.pm.Pm
12-30 11:28:01.618: D/dalvikvm(1706): Rejecting registerization due to mul-int/lit8 v4, v2, (#31)
12-30 11:28:01.628: W/ActivityManager(2125): No content provider found for permission revoke: file:///data/local/tmp/proj.android.apk
12-30 11:28:02.098: W/ActivityManager(2125): No content provider found for permission revoke: file:///data/local/tmp/proj.android.apk
12-30 11:28:02.098: I/PackageManager(2125): Copying native libraries to /data/app-lib/vmdl493884096
12-30 11:28:02.408: W/PackageParser(2125): Unknown element under : meta-data at /data/app/vmdl493884096.tmp Binary XML file line #46
12-30 11:28:03.118: D/dalvikvm(2125): GC_CONCURRENT freed 3613K, 32% free 11468K/16688K, paused 2ms+4ms, total 48ms
12-30 11:28:03.118: D/dalvikvm(2125): WAIT_FOR_CONCURRENT_GC blocked 29ms
12-30 11:28:06.128: I/PackageManager(2125): Running dexopt on: com.jandusoft.gtc
12-30 11:28:06.128: I/PackageManager(2125): Linking native library dir for /data/app/com.jandusoft.gtc-1.apk
12-30 11:28:06.188: D/dalvikvm(1760): DexOpt: load 15ms, verify+opt 26ms, 510108 bytes
12-30 11:28:06.238: I/ActivityManager(2125): Force stopping package com.jandusoft.gtc appid=10112 user=-1
12-30 11:28:06.348: D/PackageManager(2125): New package installed in /data/app/com.jandusoft.gtc-1.apk
12-30 11:28:06.368: D/dalvikvm(2125): Rejecting registerization due to mul-int/lit8 v7, v4, (#100)
12-30 11:28:06.468: I/InputReader(2125): Reconfiguring input devices.  changes=0x00000010
12-30 11:28:06.468: D/PackageManager(2125): generateServicesMap() for 0
12-30 11:28:06.488: D/PackageManager(2125): generateServicesMap() for 0
12-30 11:28:06.498: I/ActivityManager(2125): Start proc com.google.android.partnersetup for broadcast com.google.android.partnersetup/.RlzPingBroadcastReceiver: pid=1762 uid=10047 gids={50047, 3003, 1028}
12-30 11:28:06.558: I/ActivityThread(1762): Pub com.google.android.partnersetup.rlzprovider: com.google.android.partnersetup.RlzProvider
12-30 11:28:06.558: I/ActivityThread(1762): Pub com.google.android.partnersetup.rlzappprovider: com.google.android.partnersetup.RlzAppProvider
12-30 11:28:06.598: D/dalvikvm(1762): Rejecting registerization due to mul-int/lit8 v5, v0, (#31)
12-30 11:28:06.598: D/dalvikvm(1762): Rejecting registerization due to mul-int/lit8 v5, v0, (#31)
12-30 11:28:06.608: D/dalvikvm(2125): GC_EXPLICIT freed 2077K, 29% free 11938K/16688K, paused 2ms+9ms, total 141ms
12-30 11:28:06.608: D/AndroidRuntime(1706): Shutting down VM
12-30 11:28:06.608: D/dalvikvm(1706): GC_CONCURRENT freed 99K, 18% free 491K/592K, paused 1ms+0ms, total 3ms
12-30 11:28:06.608: D/dalvikvm(1706): Debugger has detached; object registry had 1 entries
12-30 11:28:06.808: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4888493203307, TAG=AsyncService, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=12036, UID=10080
12-30 11:28:06.828: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4888508569706, TAG=AsyncService, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=12036, UID=10080
12-30 11:28:06.878: D/SystemBroadcastService(24629): Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=
12-30 11:28:06.888: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4888577881307, TAG=Icing, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=24629, UID=10030
12-30 11:28:06.908: D/dalvikvm(2442): GC_FOR_ALLOC freed 11458K, 41% free 20365K/34160K, paused 23ms, total 24ms
12-30 11:28:06.908: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4888589742677, TAG=Icing, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=24629, UID=10030
12-30 11:28:06.918: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4888600868443, TAG=Icing, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=24629, UID=10030
12-30 11:28:06.918: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4888605903858, TAG=Icing, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=24629, UID=10030
12-30 11:28:06.998: D/AndroidRuntime(1802): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-30 11:28:06.998: D/AndroidRuntime(1802): CheckJNI is OFF
12-30 11:28:06.998: E/AndroidRuntime(1802): readIfwiVersion() open dev file error: 13
12-30 11:28:06.998: I/AndroidRuntime(1802): Kernel Release Version: 3.4.21-00003-gca7d65c
12-30 11:28:07.008: D/dalvikvm(1802): Trying to load lib libjavacore.so 0x0
12-30 11:28:07.008: D/dalvikvm(1802): Added shared lib libjavacore.so 0x0
12-30 11:28:07.018: D/dalvikvm(1802): Trying to load lib libnativehelper.so 0x0
12-30 11:28:07.018: D/dalvikvm(1802): Added shared lib libnativehelper.so 0x0
12-30 11:28:07.038: D/dalvikvm(2442): GC_FOR_ALLOC freed 374K, 34% free 22714K/34160K, paused 14ms, total 14ms
12-30 11:28:07.048: I/dalvikvm-heap(2442): Grow heap (frag case) to 27.850MB for 5634992-byte allocation
12-30 11:28:07.068: D/dalvikvm(2442): GC_FOR_ALLOC freed 5K, 29% free 28211K/39664K, paused 17ms, total 17ms
12-30 11:28:07.138: D/AndroidRuntime(1802): Calling main entry com.android.commands.am.Am
12-30 11:28:07.138: D/dalvikvm(1802): Rejecting registerization due to mul-int/lit8 v4, v2, (#31)
12-30 11:28:07.138: D/dalvikvm(1802): Note: class Landroid/app/ActivityManagerNative; has 161 unimplemented (abstract) methods
12-30 11:28:07.138: I/ActivityManager(2125): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.jandusoft.gtc/.Gtc} from pid 1802
12-30 11:28:07.138: W/ApplicationContext(2125): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1352 com.android.server.am.ActivityStack.sendActivityBroadcastLocked:4848 com.android.server.am.ActivityStack.startActivityLocked:1887 
12-30 11:28:07.158: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4888840610204, TAG=ActivityManager-Launch, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:07.168: D/AndroidRuntime(1802): Shutting down VM
12-30 11:28:07.168: D/dalvikvm(1802): GC_CONCURRENT freed 100K, 17% free 525K/628K, paused 1ms+0ms, total 3ms
12-30 11:28:07.168: D/jdwp(1802): Got wake-up signal, bailing out of select
12-30 11:28:07.178: D/dalvikvm(1802): Debugger has detached; object registry had 1 entries
12-30 11:28:07.268: D/dalvikvm(1812): Late-enabling CheckJNI
12-30 11:28:07.268: D/dalvikvm(1812): Try to disable coredump for pid 1812
12-30 11:28:07.268: I/ActivityManager(2125): Start proc com.jandusoft.gtc for activity com.jandusoft.gtc/.Gtc: pid=1812 uid=10112 gids={50112, 3003, 1015, 1028}
12-30 11:28:07.278: D/dalvikvm(1773): GC_EXPLICIT freed 43K, 12% free 2551K/2896K, paused 1ms+1ms, total 13ms
12-30 11:28:07.288: E/jdwp(1812): Failed sending reply to debugger: Broken pipe
12-30 11:28:07.288: D/dalvikvm(1812): Debugger has detached; object registry had 1 entries
12-30 11:28:07.288: D/dalvikvm(2442): GC_FOR_ALLOC freed 9874K, 38% free 20663K/33296K, paused 24ms, total 26ms
12-30 11:28:07.298: D/dalvikvm(1773): GC_EXPLICIT freed <1K, 12% free 2551K/2896K, paused 1ms+1ms, total 14ms
12-30 11:28:07.298: V/PanelView(2249): com.android.systemui:id/notification_panel: setExpansion: height=0,0 fh=451,0 tracking=f rubber=f
12-30 11:28:07.298: V/PanelView(2249): com.android.systemui:id/settings_panel: setExpansion: height=0,0 fh=642,0 tracking=f rubber=f
12-30 11:28:07.298: V/PanelView(2249): com.android.systemui:id/quick_settings_panel: setExpansion: height=0,0 fh=38,0 tracking=f rubber=f
12-30 11:28:07.308: D/dalvikvm(1773): GC_EXPLICIT freed <1K, 12% free 2551K/2896K, paused 1ms+1ms, total 14ms
12-30 11:28:07.318: D/dalvikvm(1812): Trying to load lib /data/app-lib/com.jandusoft.gtc-1/libcocos2djs.so 0x41c668c0
12-30 11:28:07.328: D/dalvikvm(1812): Added shared lib /data/app-lib/com.jandusoft.gtc-1/libcocos2djs.so 0x41c668c0
12-30 11:28:07.348: D/Cocos2dxActivity(1812): model=ME302C
12-30 11:28:07.348: D/Cocos2dxActivity(1812): product=US_epad
12-30 11:28:07.348: D/Cocos2dxActivity(1812): isEmulator=false
12-30 11:28:07.418: D/libEGL(1812): loaded /vendor/lib/egl/libEGL_POWERVR_SGX544_115.so
12-30 11:28:07.428: D/libEGL(1812): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX544_115.so
12-30 11:28:07.428: I/ThermalCoolingManager(2125): Received THERMAL INTENT: of event type 2 with state 2 at temperature 38000 from CpuLow with state ALERT for HIGH event at Temperature 38000
12-30 11:28:07.428: D/dalvikvm(2442): GC_FOR_ALLOC freed 53K, 32% free 22945K/33296K, paused 21ms, total 21ms
12-30 11:28:07.428: W/ApplicationContext(2125): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1032 com.android.server.ThermalService$Notify.consume:332 com.android.server.ThermalService$Notify.run:311 
12-30 11:28:07.438: D/libEGL(1812): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX544_115.so
12-30 11:28:07.438: D/Thermal:CPUIdleControlControl(2125): Set Idle state C6 Enable path
12-30 11:28:07.438: I/dalvikvm-heap(2442): Grow heap (frag case) to 27.826MB for 5372656-byte allocation
12-30 11:28:07.458: D/dalvikvm(2442): GC_FOR_ALLOC freed <1K, 27% free 28192K/38544K, paused 18ms, total 18ms
12-30 11:28:07.498: D/OpenGLRenderer(1812): Enabling debug mode 0
12-30 11:28:07.558: D/dalvikvm(2442): GC_FOR_ALLOC freed 7917K, 32% free 22839K/33296K, paused 21ms, total 22ms
12-30 11:28:07.558: D/cocos2d-x debug info(1812): 
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   cocos2d.x.version: 2.2.1
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   cocos2d.x.compiled_with_profiler: false
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   cocos2d.x.compiled_with_gl_state_cache: true
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.vendor: Imagination Technologies
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.renderer: PowerVR SGX 544MP
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.version: OpenGL ES 2.0 build 1.9@2291151
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.max_texture_size: 4096
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.max_texture_units: 8
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.supports_PVRTC: true
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.supports_NPOT: true
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.supports_BGRA8888: true
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.supports_discard_framebuffer: true
12-30 11:28:07.558: D/cocos2d-x debug info(1812):   gl.supports_vertex_array_object: true
12-30 11:28:07.558: D/cocos2d-x debug info(1812): 
12-30 11:28:07.588: D/dalvikvm(2442): GC_FOR_ALLOC freed 1K, 27% free 24563K/33296K, paused 29ms, total 30ms
12-30 11:28:07.588: I/dalvikvm-heap(2442): Grow heap (frag case) to 25.507MB for 1286224-byte allocation
12-30 11:28:07.618: D/dalvikvm(2442): GC_FOR_ALLOC freed 1K, 26% free 25817K/34556K, paused 27ms, total 27ms
12-30 11:28:07.778: D/dalvikvm(2442): GC_FOR_ALLOC freed 2634K, 25% free 26078K/34556K, paused 18ms, total 18ms
12-30 11:28:07.778: I/dalvikvm-heap(2442): Grow heap (frag case) to 26.988MB for 1286224-byte allocation
12-30 11:28:07.828: I/ActivityManager(2125): Displayed com.jandusoft.gtc/.Gtc: +575ms
12-30 11:28:07.858: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4889540384663, TAG=ActivityManager-Launch, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:07.858: D/dalvikvm(2442): GC_FOR_ALLOC freed 1K, 24% free 27332K/35816K, paused 49ms, total 49ms
12-30 11:28:07.968: D/dalvikvm(2442): GC_FOR_ALLOC freed 5712K, 20% free 26637K/33296K, paused 21ms, total 21ms
12-30 11:28:08.158: D/cocos2d-x debug info(1812): Debug Enabled
12-30 11:28:08.158: D/cocos2d-x debug info(1812): Get data from file(jsb_debugger.jsc) failed!
12-30 11:28:08.168: D/cocos2d-x debug info(1812): Get data from file(cocos2d-jsb.jsc) failed!
12-30 11:28:08.168: D/cocos2d-x debug info(1812): Get data from file(jsb.jsc) failed!
12-30 11:28:08.168: D/cocos2d-x debug info(1812): Get data from file(jsb_cocos2d_constants.jsc) failed!
12-30 11:28:08.178: D/cocos2d-x debug info(1812): Get data from file(jsb_cocos2d.jsc) failed!
12-30 11:28:08.178: D/cocos2d-x debug info(1812): Get data from file(jsb_cocos2d_extension.jsc) failed!
12-30 11:28:08.188: D/cocos2d-x debug info(1812): Get data from file(jsb_chipmunk_constants.jsc) failed!
12-30 11:28:08.188: D/cocos2d-x debug info(1812): Get data from file(jsb_chipmunk.jsc) failed!
12-30 11:28:08.188: D/cocos2d-x debug info(1812): Get data from file(jsb_opengl_constants.jsc) failed!
12-30 11:28:08.198: D/cocos2d-x debug info(1812): Get data from file(jsb_opengl.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(jsb_cocosbuilder.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(jsb_sys.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(variables.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(configuracion.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(jsapi.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(files.jsc) failed!
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: localStorage = [object Object]
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: capabilities = [object Object]
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: os = android
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: platform = mobile
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: version = 2.2.1 - 0.3-beta
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: garbageCollect = function () {
12-30 11:28:08.208: D/cocos2d-x debug info(1812):   __jsc__.garbageCollect();
12-30 11:28:08.208: D/cocos2d-x debug info(1812): }
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: dumpRoot = function () {
12-30 11:28:08.208: D/cocos2d-x debug info(1812):   __jsc__.dumpRoot();
12-30 11:28:08.208: D/cocos2d-x debug info(1812): }
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: restartVM = function () {
12-30 11:28:08.208: D/cocos2d-x debug info(1812):   __restartVM();
12-30 11:28:08.208: D/cocos2d-x debug info(1812): }
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: opengl = true
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: accelerometer = true
12-30 11:28:08.208: D/cocos2d-x debug info(1812): JS: touches = true
12-30 11:28:08.208: D/cocos2d-x debug info(1812): Get data from file(constantes.jsc) failed!
12-30 11:28:08.218: D/cocos2d-x debug info(1812): Get data from file(resource.jsc) failed!
12-30 11:28:08.218: D/cocos2d-x debug info(1812): Get data from file(juegos/miis.jsc) failed!
12-30 11:28:08.218: D/cocos2d-x debug info(1812): Get data from file(juegos/iap1.jsc) failed!
12-30 11:28:08.218: D/cocos2d-x debug info(1812): Get data from file(juegos/iap2.jsc) failed!
12-30 11:28:08.228: D/cocos2d-x debug info(1812): Get data from file(juegos/iap3.jsc) failed!
12-30 11:28:08.228: D/cocos2d-x debug info(1812): Get data from file(juegos/iap4.jsc) failed!
12-30 11:28:08.228: D/cocos2d-x debug info(1812): Get data from file(juegos/iap5.jsc) failed!
12-30 11:28:08.238: D/cocos2d-x debug info(1812): Get data from file(langs/da.jsc) failed!
12-30 11:28:08.238: D/cocos2d-x debug info(1812): Get data from file(langs/de.jsc) failed!
12-30 11:28:08.238: D/cocos2d-x debug info(1812): Get data from file(langs/en.jsc) failed!
12-30 11:28:08.248: D/cocos2d-x debug info(1812): Get data from file(langs/es.jsc) failed!
12-30 11:28:08.248: D/cocos2d-x debug info(1812): Get data from file(langs/fr.jsc) failed!
12-30 11:28:08.248: D/hwcomposer(2125): isSpriteLayer: got a sprite layer
12-30 11:28:08.248: D/cocos2d-x debug info(1812): Get data from file(langs/it.jsc) failed!
12-30 11:28:08.258: D/cocos2d-x debug info(1812): Get data from file(langs/jp.jsc) failed!
12-30 11:28:08.258: D/cocos2d-x debug info(1812): Get data from file(langs/nl.jsc) failed!
12-30 11:28:08.258: D/cocos2d-x debug info(1812): Get data from file(langs/pt.jsc) failed!
12-30 11:28:08.258: D/cocos2d-x debug info(1812): Get data from file(langs/ru.jsc) failed!
12-30 11:28:08.258: D/cocos2d-x debug info(1812): Get data from file(langs/tr.jsc) failed!
12-30 11:28:08.268: D/cocos2d-x debug info(1812): Get data from file(langs/zh.jsc) failed!
12-30 11:28:08.268: D/cocos2d-x debug info(1812): Get data from file(utils.jsc) failed!
12-30 11:28:08.268: D/cocos2d-x debug info(1812): Get data from file(resourcemanager.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(logmanager.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(soundmanager.jsc) failed!
12-30 11:28:08.278: D/Device Model(1812): ME302C
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(storemanager.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(adsmanager.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(trackmanager.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(localization.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(juego.jsc) failed!
12-30 11:28:08.278: D/cocos2d-x debug info(1812): Get data from file(menuitemspritescale.jsc) failed!
12-30 11:28:08.288: D/cocos2d-x debug info(1812): Get data from file(juegos.jsc) failed!
12-30 11:28:08.288: D/cocos2d-x debug info(1812): Get data from file(estadopartida.jsc) failed!
12-30 11:28:08.288: D/cocos2d-x debug info(1812): Get data from file(cpuia.jsc) failed!
12-30 11:28:08.288: D/cocos2d-x debug info(1812): Get data from file(coloractual.jsc) failed!
12-30 11:28:08.288: D/cocos2d-x debug info(1812): Get data from file(partida.jsc) failed!
12-30 11:28:08.298: D/cocos2d-x debug info(1812): Get data from file(estadisticas.jsc) failed!
12-30 11:28:08.298: D/cocos2d-x debug info(1812): Get data from file(ventanaqeqgeneral.jsc) failed!
12-30 11:28:08.298: D/cocos2d-x debug info(1812): Get data from file(ventanasalir.jsc) failed!
12-30 11:28:08.298: D/cocos2d-x debug info(1812): Get data from file(ventanaestadisticas.jsc) failed!
12-30 11:28:08.298: D/cocos2d-x debug info(1812): Get data from file(ventanaoponente.jsc) failed!
12-30 11:28:08.308: D/cocos2d-x debug info(1812): Get data from file(ventanapreguntar.jsc) failed!
12-30 11:28:08.308: D/cocos2d-x debug info(1812): Get data from file(ventanaganarperder.jsc) failed!
12-30 11:28:08.308: D/cocos2d-x debug info(1812): Get data from file(ventanacontinuar.jsc) failed!
12-30 11:28:08.308: D/cocos2d-x debug info(1812): Get data from file(ventanafija.jsc) failed!
12-30 11:28:08.308: D/cocos2d-x debug info(1812): Get data from file(tablero.jsc) failed!
12-30 11:28:08.328: D/cocos2d-x debug info(1812): Get data from file(tutorial.jsc) failed!
12-30 11:28:08.328: D/cocos2d-x debug info(1812): Get data from file(partidalocal.jsc) failed!
12-30 11:28:08.338: D/cocos2d-x debug info(1812): Get data from file(ofuscar.jsc) failed!
12-30 11:28:08.338: D/cocos2d-x debug info(1812): Get data from file(menuscene.jsc) failed!
12-30 11:28:08.358: D/cocos2d-x debug info(1812): JS: Physical resolution: 1920x1128
12-30 11:28:08.358: D/cocos2d-x debug info(1812): JS: ipadhd version
12-30 11:28:08.358: D/cocos2d-x debug info(1812): JS: Design Size: 2048x1536
12-30 11:28:08.358: D/cocos2d-x debug info(1812): JS: Screen Size: 1920x1128
12-30 11:28:08.358: D/cocos2d-x debug info(1812): JS: Resource Size: 2048x1536
12-30 11:28:12.518: D/hwcomposer(2125): isRGBOverlayLayer: got an RGB overlay layer
12-30 11:28:12.518: D/hwcomposer(2125): isSpriteLayer: got a sprite layer
12-30 11:28:21.848: V/AlarmManager(2125): Alarm triggering: Alarm{21254d28 type 0 com.android.vending}
12-30 11:28:21.858: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4903540067981, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:21.858: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4903541083216, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:22.108: D/Finsky(24586): [1] 5.onFinished: Installation state replication succeeded.
12-30 11:28:34.408: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4916097276391, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:34.418: W/ThrottleService(2125): unable to find stats for iface rmnet0
12-30 11:28:34.418: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4916105938847, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:28:37.428: I/ThermalSensor(2125):  THERMAL_LOW_EVENT for sensor:DTS_CPU rejected due to debounce interval
12-30 11:28:51.818: E/ia_watchdog(1769): Timer interrupt
12-30 11:28:51.818: E/ia_watchdog(1769): waiting for a timer interrupt
12-30 11:28:59.988: I/WAKELOCK_ACQUIRE(2125): TIMESTAMP=4941674431281, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:29:00.018: D/WeatherTIMESERVICE(3508): android.intent.action.TIME_TICK
12-30 11:29:00.038: I/WAKELOCK_RELEASE(2125): TIMESTAMP=4941720230476, TAG=AlarmManager, TYPE=PARTIAL_WAKE_LOCK             , COUNT=0, PID=2125, UID=1000
12-30 11:29:00.048: I/WeatherWidgetProviderPhone(3508): Intent content:21
12-30 11:29:00.048: I/WeatherWidgetProviderPhone(3508): appWidgetId=3
12-30 11:29:00.048: I/WeatherWidgetProviderPhone(3508): onUpdate1 widgetId=3
12-30 11:29:00.058: I/WeatherWidgetProviderPhone(3508): step1
12-30 11:29:00.058: I/WeatherWidgetProviderPhone(3508): widget_hspan=4 widget_vspan=3
12-30 11:29:00.058: V/WeatherWidgetProviderPhone(3508): setWidgetInfo_4x3 widgetCursor, widgetid = 3
12-30 11:29:00.068: V/WeatherWidgetProviderPhone(3508): setWidgetInfo_4x3 weatherCursor, widgetid = 3
12-30 11:29:00.068: I/WeatherWidgetProviderPhone(3508): No information in the contentprovider
12-30 11:29:00.078: V/WeatherWidgetProviderPhone(3508): enableDefaultWidgetStatus, time[1] = 11:29
12-30 11:29:07.428: I/ThermalSensor(2125):  THERMAL_LOW_EVENT for sensor:DTS_CPU rejected due to debounce interval

Note: I’m using a android x86 tablet

Hello,

I am having a similar issue, but on the win32 platform.
I am using a project generated by create-project.py with cocos2d-x v2.2.2

I ll give here what I had to do in case it gives you pointers on what to do.

Looking at the TestJavascript project from cocos2d-x I found out that I need to :

  • add prebuild and prelink event to copy all js files needed ( including binding scripts and the websocket lib ) into the Resources/ folder.
    If I use a subdirectory I need to also call

    CCFileUtils::sharedFileUtils()->addSearchPath(“js”);

from inside my c++ code so that cocos2d can find the files.

The errors of type :

D/cocos2d-x debug info(1812): Get data from file(myawesomescript.jsc) failed!

Is more scary than needed. It just says that the precompiled js file was not found. In that case the ScriptingCore class will attempt to compile it on the fly (source around ScriptingCore.cpp:533 )

In my case the actual error is shown in the log as :

(evaluatedOK == JS_FALSE)

Which can mean the compilation failed ( because the source .js was not found ) or the evaluation of the js code has failed for whatever reason.

So I believe in your case the debugger is probably running fine.
Connecting via adb to a socket on the device might be the problem… My guess is that your ip is something different than 127.0.0.1 ( your local machine - that is your computer )

Now on windows I have a different problem ( maybe due to the platform ) :

    if ((err = getaddrinfo(NULL, portstr.str().c_str(), &hints, &result)) != 0) {
        LOGD("getaddrinfo error : %s\n", gai_strerror(err));
    }

This fails with the (specific to windows) error WSANOTINITIALISED.

I will attempt a linux build to check the behavior there…
I ll keep posting.

here is a remote debugging tutorial
https://github.com/cocos2d/cocos2d-x/blob/develop/cocos/scripting/javascript/script/debugger/README.md