【问题标题】:Not able to debug android project in eclipse无法在eclipse中调试android项目
【发布时间】:2014-01-08 05:25:45
【问题描述】:

在调试时我遇到了一个问题。我在不同的地方放置了切换断点,但是当我开始调试时,代码的执行并没有在断点处停止。我从两天开始就面临这个问题并且之前运行过。我在关闭项目后尝试了在运行菜单中跳过所有断点的选项未选中。也没有在清单中找到 android:process=":remote" 请帮助我。

附加信息:我不知道它是否相关,但在设备信息中有两个包可见。第一个包有调试符号和端口号 8600,而第二个包有端口号 8601/8700。可能在那里是端口号问题。

当我把它放在启动活动上时,断点正在工作。但是当我在服务和接收器上设置断点时不起作用。

Logcat:

01-08 10:45:54.481: I/System.out(15653): Sending WAIT chunk
01-08 10:45:54.481: D/libc(15653): pt_debug : pthread_create->start_routine=0x4032c509, tls=0x53824f00, arg=0x4079b360
01-08 10:45:54.481: D/libc(15653): pt_debug : __thread_entry->func=0x4032c509
01-08 10:45:54.481: D/libc(15653): , tls=0x53824f00, arg=0x4079b360
01-08 10:45:54.681: I/System.out(15653): Debugger has connected
01-08 10:45:54.681: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:54.881: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:55.081: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:55.281: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:55.481: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:55.681: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:55.881: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:56.081: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:56.281: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:56.491: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:56.691: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:56.891: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:57.091: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:57.291: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:57.491: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:57.691: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:57.891: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:58.091: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:58.291: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:58.491: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:58.701: I/System.out(15653): waiting for debugger to settle...
01-08 10:45:58.901: I/System.out(15653): debugger has settled (1477)
01-08 10:46:00.761: I/ActivityThread(15653): Pub com.csipsimple.prefs: com.csipsimple.service.PreferenceProvider
01-08 10:46:00.821: D/libc(15653): pt_debug : pthread_create->start_routine=0x40c1483d, tls=0x53c65f00, arg=0x40318f60
01-08 10:46:00.821: D/libc(15653): pt_debug : __thread_entry->func=0x40c1483d
01-08 10:46:00.821: D/libc(15653): , tls=0x53c65f00, arg=0x40318f60
01-08 10:46:01.421: E/siphome(15653): sip home
01-08 10:46:01.961: D/libc(15653): pt_debug : pthread_create->start_routine=0x40c1483d, tls=0x53c65f00, arg=0x50fe9118
01-08 10:46:01.961: D/libc(15653): pt_debug : __thread_entry->func=0x40c1483d
01-08 10:46:01.961: D/libc(15653): , tls=0x53c65f00, arg=0x50fe9118
01-08 10:46:01.981: D/libc(15653): pt_debug : pthread_create->start_routine=0x40c1483d, tls=0x53d65f00, arg=0x4079c610
01-08 10:46:01.991: D/libc(15653): pt_debug : __thread_entry->func=0x40c1483d
01-08 10:46:01.991: D/libc(15653): , tls=0x53d65f00, arg=0x4079c610
01-08 10:46:01.991: E/starting thread(15653): starting thread 
01-08 10:46:02.111: E/Trace(15754): error opening trace file: No such file or directory (2)
01-08 10:46:02.211: D/libc(15653): pt_debug : pthread_create->start_routine=0x40c1483d, tls=0x53e65f00, arg=0x50f33650
01-08 10:46:02.231: D/libc(15653): pt_debug : __thread_entry->func=0x40c1483d
01-08 10:46:02.231: D/libc(15653): , tls=0x53e65f00, arg=0x50f33650
01-08 10:46:02.381: I/ActivityThread(15754): Pub com.csipsimple.db: com.csipsimple.db.DBProvider
01-08 10:46:02.481: I/Adreno200-EGL(15653): <qeglDrvAPI_eglInitialize:299>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.02.21.081_msm7627a_JB_REL_2.0.3_CL2820657_release_AU (CL2820657)

【问题讨论】:

  • 请检查thisthis,你可能会有一些想法,顺便说一句,你是在模拟器还是真机上调试?
  • @RDC 我在真机上调试
  • 在调试模式下运行模拟器非常慢,有些事情只是超时并且比在调试模式下失败的频率更高。您应该学习在代码中放置大量日志以查找错误。在发布您的评论之前输入此评论。此外,eclipse上的调试器也不是最好的。
  • @NicolasTyler 我已经放了日志,但这次我真的需要调试它
  • 你把断点放在哪里了。您正在通过 CSIPSimple 运行基于 SIP 的应用程序,如果我是对的,如果您使用它,它可能是或可能是 JNI 的问题。

标签: android eclipse debugging


【解决方案1】:

你可以尝试的事情:

  • 清理并重建项目
  • 确保您的调试配置正确无误。
  • 确保所选的 java sdk 是最新的。
  • 增加 eclipse 可能使用的堆大小。
  • 重启eclipse

【讨论】:

    【解决方案2】:

    您应该尝试删除在此link 之后放入代码中的所有断点。

    【讨论】:

      猜你喜欢
      • 2013-12-15
      • 1970-01-01
      • 2012-04-13
      • 2013-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-19
      • 2017-04-04
      相关资源
      最近更新 更多