0

Java でアプリケーションをデバッグしているときに、プロセスとそのスレッドが中断され、ログ (ファイルに送信され、コンソールなし) が中断された瞬間がありましたが、プログラムは例外をスローしませんでした。 Java プログラム。これは場合によっては発生し、別のケースでは Eclipse 全体がブロックされました。

プログラムを実行するコンピュータに十分な空き RAM がある。

より強力なコンピューターを使用して実行された同じプログラムは、正常に動作しました。

原因は何ですか?Eclipse には、この動作の原因となる制限がありますか?

4

2 に答える 2

1

Eclipse can suspend program execution when it encounters uncaught exceptions or compilation errors. It is possible that you are not seeing the exception in your logs because the exception was not handled. By default that would print the exception to the console, which you can still access if your logger captures and files it somewhere or you have access to the console.

Another reason to suspend execution is access modification of a watch point.

You can find and edit these debug settings under Window -> Preferences -> Java -> Debug

RAM has nothing to do with breakpoints and their behavior.

于 2013-04-06T18:34:23.230 に答える
0

Eclipse は Java プログラムとして開始されるため、Eclipse で使用可能なメモリを増やしてみてください (eclipse.ini 内)。詳細は次の場所にあります

-Xmx768m を使用しています

于 2013-04-06T18:21:22.853 に答える