--- title: 'Eclipse debug mode' disqus: hackmd --- ###### tags: `Eclipse` Eclipse debug mode === [TOC] ## 筆記目的 了解如何使用 Eclipse debug mode ## 如何使用 在project manager 對主程式按下右鍵,選取debug mode,然後對要看的程式,在程式碼旁邊,點兩下左鍵,就會建立中斷點,如下圖所示 ![](https://i.imgur.com/OgSIb5N.png) variable區可惜的是無法看到static variable所以要參考以下這個解法 https://stackoverflow.com/questions/801193/modify-view-static-variables-while-debugging-in-eclipse 或是最簡單的 > Simply put your mouse cursor over the static variable in the code and you will see the assigned value. 另外圖中的123分別對應了 1. step into: 進去方法裡面,如果方法裡面有方法就會一直進去 2. stop over: 應該是一行一行執行 3. step return: 應該是一列一列執行 後面兩個不好分,建議直接看stackoverflow,或者是 https://stackoverflow.com/questions/3580715/what-is-the-difference-between-step-into-and-step-over-in-a-debugger ## auto for loop 自動填字 ``` .abcdefghijklmnopqrstuvwxyz ``` [自動選字設定教學]( https://www.itread01.com/p/1323106.html )