无法在eclipse中调试android项目

时间:2014-01-08 05:25:45

标签: android eclipse debugging

虽然调试我遇到了一个问题。我已经在各个地方设置了切换断点,但是当我开始调试时,代码的执行并没有在断点处停止。我在两天内遇到了这个问题并且之前正在运行。我在关闭项目后尝试了跳过运行菜单中的所有断点的选项未选中。还没有找到 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)

2 个答案:

答案 0 :(得分:0)

你可以尝试的事情:

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

答案 1 :(得分:0)

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