5

I'm writing a simple Android application. I changed the "Java EE" perspective to "debug" and after tracing variables, I return to original perspective ( "Java EE" ) and stopped debugging. But when I try to run my application on my phone, it changes the perspective automatically to debug and jumps to first break point.
In debug window, it shows: debugging

DalvikVM[localhost:8600]    
    Thread [<1> main] (Suspended (breakpoint at line 23 in FirstActivity))  
        FirstActivity.onCreate(Bundle) line: 23 
        Instrumentation.callActivityOnCreate(Activity, Bundle) line: 1047   
        ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2627  
        ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679   
        ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 
        ActivityThread$H.handleMessage(Message) line: 2033  
        ActivityThread$H(Handler).dispatchMessage(Message) line: 99 
        Looper.loop() line: 123 
        ActivityThread.main(String[]) line: 4627    
        Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]  
        Method.invoke(Object, Object...) line: 521  
        ZygoteInit$MethodAndArgsCaller.run() line: 871  
        ZygoteInit.main(String[]) line: 629 
        NativeStart.main(String[]) line: not available [native method]  
    Thread [<7> Binder Thread #2] (Running) 
    Thread [<6> Binder Thread #1] (Running) 

Would you please help me how get rid of this debug perspective ?

Regards.

4

4 に答える 4

10

提案:

  • プロジェクトを右クリックするときは、「デバッグ」ではなく「実行」を選択してください。
  • デバッグ パースペクティブで、アイコンをクリックしてデバッガーを切断します (私の Eclipse では、停止アイコンの右側にあるアイコンです)。
  • すべてのブレークポイントを無効にする
于 2011-11-28T20:28:51.617 に答える
1

どのようにアプリケーションを起動していますか? ショートカットを使用している場合はRun As... Android ApplicationDebug As... Android Application. 私は練習不足ですがRun As、Eclipse でのショートカットは Ctrl+F11 だと思いますか?

于 2011-11-28T20:26:28.323 に答える
1

のブレークポイントを削除または無効にしますFirstActivity.onCreate(Bundle) line: 23

または、デバッグ構成の代わりに Eclipse メニューから実行構成を使用してアプリを再起動します。

于 2011-11-28T20:19:55.037 に答える
0

上記のすべての設定をすべて構成したにもかかわらず、デバッグの視点を取得し続けました。

別の StackOverflow で答えを見つけました: Reboot your debugging device.

(電源を切らずに、代わりに [再起動] を選択してください)。それは私のために働いた。

于 2014-11-26T14:59:47.190 に答える