1. 程式人生 > >eclipse中debug改變變數的值

eclipse中debug改變變數的值

step1:debug斷點到變數的下一行,在debug試圖的右上角variables中看到該變數的值;

step2:滑鼠右鍵點選str出現下圖,選擇Change Value...

step3:點選Change Value...   在其中輸入自己想要的值,再點選OK確定。


step4:繼續F6,可以看到str的值已經被更改了。