2014-01-08 182 views
0

在調試過程中,我遇到了一個問題。我在各個地方放置了切換點,但是當我開始調試時,代碼的執行沒有在斷點停止。我正面臨這個問題從兩天和之前運行。我試過關閉項目後也試圖跳過運行菜單中的所有斷點的選項未選中。還沒有找到android:process =「:remote」 in manifiest請幫助我。無法在eclipse中調試android項目

附加信息:我不知道它是否相關,但在設備信息中有兩個包可見。第一個包帶有調試符號,端口號爲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) 
+0

請檢查[this](https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137)和[this](http://stackoverflow.com/questions/5540670/android-eclipse-無法調試),你可能會得到一些想法,順便說一句,你是在仿真器還是真實設備上調試? – swiftBoy

+0

@RDC我正在調試真實設備 –

+0

它非常慢地在調試模式下運行仿真器,有些事情只是超時,比在調試模式下更頻繁地失敗。您應該學會在代碼中添加大量日誌以查找錯誤。在發佈您的評論之前輸入此評論。而且,eclipse上的調試器並不是最好的。 –

回答

0

可嘗試:

  • 清理並重建項目
  • 確保您的調試配置是正確的。
  • 確保所選的java sdk是最新的。
  • 增加日食可能使用的堆大小。
  • 重新啓動Eclipse
+0

我沒有在主線程選項中停止 –

0

你應該嘗試刪除所有你的斷點你把你的代碼下面這個link