氧氣中毒 - J2EE

          爪吐奕奕征途
          posts - 24, comments - 10, trackbacks - 0, articles - 0
             :: 首頁 :: 新隨筆 ::  ::  :: 管理

          eclipse debug (調試) 學習心得

          Posted on 2006-06-14 15:04 氧氣中毒 閱讀(4180) 評論(2)  編輯  收藏 所屬分類: 環境配置
          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,exception breakpoint.
          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-->重新暫掛于斷點


          評論

          # re: eclipse debug (調試) 學習心得  回復  更多評論   

          2006-08-09 14:35 by cawhong
          好文,謝謝~~

          # re: eclipse debug (調試) 學習心得  回復  更多評論   

          2007-01-22 09:49 by 路過
          如果能具體再說一下怎樣使用那就更好了
          主站蜘蛛池模板: 正镶白旗| 黎城县| 黄石市| 合山市| 赣州市| 桑植县| 开阳县| 富源县| 博罗县| 阳城县| 石林| 紫云| 新化县| 淮阳县| 罗源县| 喀喇| 固始县| 手游| 南雄市| 灵武市| 应城市| 丹寨县| 湖州市| 三原县| 乐亭县| 唐河县| 博罗县| 深水埗区| 海阳市| 修文县| 金阳县| 石阡县| 双桥区| 江门市| 闽侯县| 三原县| 灵宝市| 屯留县| 类乌齐县| 驻马店市| 将乐县|