Sysprogs forums › Forums › VisualGDB › Debugger Detached?
- This topic has 9 replies, 4 voices, and was last updated 11 years, 3 months ago by ket.
-
AuthorPosts
-
October 12, 2012 at 17:06 #562NiteLordzParticipant
I have a makefile project that i have been using via cygwin and ndk blah blah blah… this compiles and runs on my phone fine. However, now i am passed hello world and need debugging. I installed VisualGDB, and ran thru a few samples. I then imported my project thru the app wizard, and compiled and built and deployed and it runs fine. I even see my log messages in LogCat. However, breakpoints do not work ( if i do Debug App Startup or if i do Debug App ), breakpoints don’t trigger anywhere in the code.
In log cat, i have the following messages
System.Out debugger detached?
i am assuming my debugger is not loaded ? or running ? i am new to gdb debugging.
My project is fairly complex, i import a few pre built libraries, and compile the code natively. This is using NativeActivity, no java…
Thanks much for any help
October 12, 2012 at 17:10 #2399NiteLordzParticipantmore details,
I am debuggin with a Droid X2 device
and i also just seen this message in Log Cat
debugger has settled
Debugger has detached; object registry had 55 entries ( this was in blue )October 12, 2012 at 19:16 #2400NiteLordzParticipantSo i found out that if i my files are in the JNI directory, then the application will be debuggable, but if my files live outside of the JNI folder, then they are not debugged… how can this be corrected?
thanks much
October 13, 2012 at 11:39 #2401supportKeymasterHi,
There’s a bug in the NDK version of GDB that causes breakpoint problems. VisualGDB fixes it for obvious cases like the JNI directory, but probably does not fix it for your project.
Please open the GDB Session window, select “All interaction with GDB” and try settings your breakpoints. Then send us (or post here) the contents of the GDB Session window. It will contain the GDB commands and replies related to the breakpoints and will help us determine why your breakpoints are not working.You can also try executing the “sharedlibrary” and “info shared” commands in the GDB session window to ensure that your symbols are loaded correctly.
October 13, 2012 at 15:03 #2402NiteLordzParticipanti have got it working ( not using any of those solutions ) but it is not reliable… what is interesting is that it seems to work one out of 3 times or so. From logcat, what seems to be happening is that the application/debugger is still running even after i stop the application and uninstall it. I then start to Debug Android App again, and it seems to pick up where it was.
what setting do i need to set for a “complete refresh” everytime
thanks much for your help, and i will try your solutions now, and let you know.
October 14, 2012 at 08:51 #2403supportKeymasterHi,
That’s strange. Uninstalling the app should normally reset the state.
As mentioned before, please send us the GDB log so that we can actually see what’s happening and give you more advice.October 14, 2012 at 16:30 #2404NiteLordzParticipantGreat news… i got it working with trial and error… so the process i have to run thru to be able to debug is as follows
in simulator
-Build normally
-Debug Android App
-wait
-when the message comes up APP_CMD_INPUT_CHANGED, place a breakpoint inside the app
-commence debuggingOn device
same as above, only Debug App Startup ( this gives the debugger time to connect since hte device is so much fasterIssues still have
-Breakpoints do not persist (once you debug and stop, you have to repeat the process, the breakpoints dont stick thru additional runs)Thanks much for your time, and now that i ahve it working, i believe i will purchase it, if i can get the breakpoints to persist
October 24, 2012 at 10:41 #2405supportKeymasterAs mentioned before, please send us the GDB log so that we can actually see what’s happening and give you more advice
August 28, 2013 at 13:16 #2406AnonymousParticipantI too had the same problem. I could not see any thing in the debug perspective while debugging. Sorry I have a very lengthy log, here is my logcat –
08-28 09:08:37.966: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.966: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.966: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.977: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.977: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.977: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.977: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.977: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.977: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.986: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:37.986: E/SoundPool(288): error loading /system/media/audio/ui/KeypressStandard.ogg
08-28 09:08:37.986: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
08-28 09:08:37.986: E/SoundPool(288): error loading /system/media/audio/ui/KeypressSpacebar.ogg
08-28 09:08:38.005: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
08-28 09:08:38.005: E/SoundPool(288): error loading /system/media/audio/ui/KeypressDelete.ogg
08-28 09:08:38.005: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
08-28 09:08:38.005: E/SoundPool(288): error loading /system/media/audio/ui/KeypressReturn.ogg
08-28 09:08:38.066: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
08-28 09:08:38.066: W/AudioService(288): onLoadSoundEffects(), Error -1 while loading samples
08-28 09:08:39.936: I/PowerManagerService(288): Nap time…
08-28 09:08:39.976: I/DreamController(288): Starting dream: name=ComponentInfo{com.example.actualscsaver/com.example.actualscsaver.MainDaydream}, isTest=false, userId=0
08-28 09:08:40.017: W/dalvikvm(986): PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.026: W/dalvikvm(986): PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 2 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 3 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 4 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 5 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 6 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 7 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.046: W/dalvikvm(986): PR_CAPBSET_DROP 8 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 9 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 10 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 11 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 12 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 13 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 14 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 15 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 16 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 17 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 18 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 19 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 20 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 21 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 22 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 23 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 24 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 25 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.056: W/dalvikvm(986): PR_CAPBSET_DROP 26 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 27 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 28 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 29 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 30 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 31 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 32 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: W/dalvikvm(986): PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
08-28 09:08:40.066: D/dalvikvm(986): Not late-enabling CheckJNI (already on)
08-28 09:08:40.076: I/ActivityManager(288): Start proc com.example.actualscsaver for service com.example.actualscsaver/.MainDaydream: pid=986 uid=10039 gids={50039, 1015, 1028}
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/KeypressStandard.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/KeypressSpacebar.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
08-28 09:08:40.106: E/SoundPool(288): error loading /system/media/audio/ui/KeypressDelete.ogg
08-28 09:08:40.106: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
08-28 09:08:40.116: E/SoundPool(288): error loading /system/media/audio/ui/KeypressReturn.ogg
08-28 09:08:40.116: W/AudioService(288): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
08-28 09:08:40.116: W/AudioService(288): onLoadSoundEffects(), Error -1 while loading samples
08-28 09:08:41.155: I/Choreographer(643): Skipped 30 frames! The application may be doing too much work on its main thread.
08-28 09:08:41.406: D/libEGL(986): loaded /system/lib/egl/libEGL_emulation.so
08-28 09:08:41.526: D/(986): HostConnection::get() New Host Connection established 0x2a05bc20, tid 986
08-28 09:08:41.558: D/libEGL(986): loaded /system/lib/egl/libGLESv1_CM_emulation.so
08-28 09:08:41.686: D/libEGL(986): loaded /system/lib/egl/libGLESv2_emulation.so
08-28 09:08:42.056: W/EGL_emulation(986): eglSurfaceAttrib not implemented
08-28 09:08:42.216: D/OpenGLRenderer(986): Enabling debug mode 0
08-28 09:08:42.298: W/InputMethodManagerService(288): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41a84118 (uid=1000 pid=452)
08-28 09:08:45.826: D/dalvikvm(288): GC_FOR_ALLOC freed 784K, 59% free 5543K/13332K, paused 156ms, total 167ms
08-28 09:08:48.726: D/dalvikvm(288): GC_FOR_ALLOC freed 785K, 59% free 5522K/13332K, paused 202ms, total 206msCan any one please tell me, what’s wrong with code?
August 28, 2013 at 19:52 #2407ketParticipantHi,
Exactly which of the above issues are you experiencing?
Please submit a full GDB log, so enable diagnostic logging in the GDB settings page of VisualGDB Project Properties. Then start debugging, replicate your scenario, stop debugging, give us the gdb log file from your project directory.
-
AuthorPosts
- You must be logged in to reply to this topic.