Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java プロジェクトに特定のメソッドが入力された後/前に、いくつかの Eclipse ビューに何かをログに記録したいと思います。
これは可能ですか?
追加情報 1: Eclipse 4.2 を使用しています
メソッドに通常のブレークポイントを作成し、次のような条件を追加します
System.out.println("hit the method"); return false;
そのブレークポイントは常に評価されますが、デバッガーは停止しません。(行ブレークポイントの代わりに)メソッドブレークポイントでも同じ手法を使用でき、メソッドの開始時または終了時に評価するかどうかを追加で指定できます。