1.Step Into (also F5) 跳入
2.Step Over (also F6) 跳過
3.Step Return (also F7) 執行完當前method,然後return跳出此method
4.step Filter 逐步過濾 一直執行直到遇到未經過濾的位置或斷點(設定Filter:window-preferences-java-Debug-step Filtering)
5.resume 重新開始執行debug,一直運行直到遇到breakpoint
6.hit count 設定執行次數 適合程式中的for迴圈(設定 breakpoint
view-右鍵hit count)
7.inspect 檢查 運算。執行一個運算式顯示執行值
8.watch 即時地監視變數的變化
9.我們常說的斷點(breakpoints)是指line breakpoints,除了line breakpoints,還有其他的斷點類型:field(watchpoint)breakpoint,method breakpoint,exceptionbreakpoint.
10.field breakpoint 也叫watchpoint(監視點) 當成員變數被讀取或修改時暫掛
11.添加method breakpoint 進入/離開此方法時暫掛(Run-method breakpoint)
12.添加Exception breakpoint 捕抓到Execption時暫掛(待續...)
斷點屬性:
1.hit count 執行多少次數後暫掛 用於迴圈
2.enable condition 遇到符合你輸入條件(為ture/改變時)就暫掛
3.suspend thread 多線程時暫掛此線程
4.suspend VM 暫掛虛擬機器
13.variables 視圖裡的變數可以改變變數值,在variables 視圖選擇變數點擊右鍵--change value.一次來進行快速調試。
14.debug 過程中修改了某些code後--〉save&build-->resume-->重新暫掛於斷點
最常用的監視:
Ctrl+Shift+B(set breakpoint) ->debug ->F5(step into) ->雙擊選中我想監視的對象 ->watch(監視)
或者選中一行帶斷點的運算式,然後inspect
http://blog.csdn.net/abcjennifer/article/details/5479431