eclipse中debug改变变量的值

step1:debug断点到变量的下一行,在debug试图的右上角variables中看到该变量的值;

step2:鼠标右键点击str出现下图,选择Change Value...

step3:点击Change Value...   在其中输入自己想要的值,再点击OK确定。

step4:继续F6,可以看到str的值已经被更改了。

原文地址:https://www.cnblogs.com/toSeeMyDream/p/7435405.html