使用DEBUG的方式進行調(diào)試
Eclipse版本4.7.2(隨便找了個最新版本)如下圖:

Eclipse啟動截圖
1、菜單欄 Help -> Eclipse Marketplace ... -> Find 鍵入【decompiler】點擊搜索

搜索結(jié)果圖
安裝上圖紅框Enhanced Class Decompiler 3.0.0

安裝完成圖
2、調(diào)整Class文件默認編輯器 Window -> Preferences -> General -> Editors -> File Associations
? ? 選擇 *.class -> Associated editors -> 類反編譯查看器 -> Default

Class文件設置
? ??選擇 *.class without source -> Associated editors -> 類反編譯查看器 -> Default

Class without source文件設置
? ? -> Apply and close
3、調(diào)整反編譯器參數(shù)?Window -> Preferences -> Java -> 反編譯器 -> Apply? ?按下圖配置

反編譯器配置
4、DEBUG測試,測試代碼如下:

測試代碼
? ? 點擊Ctrl+鼠標左鍵 指向String 可進入下圖,在構(gòu)造函數(shù)打breakpoint

斷點位置
? ? DEBUG啟動Main方法

斷點已經(jīng)成功打上