Moving the instruction pointer while debugging Java in Eclipse

后端 未结 10 1446
Happy的楠姐
Happy的楠姐 2020-12-13 23:16

Can I move the instruction pointer directly to a line of my choice (within the current method) while debugging a Java program in Eclipse (Galileo)?

10条回答
  •  醉梦人生
    2020-12-14 00:07

    I like ankon's answer best, but another option (that will only work for your specific instance -- if that) is to stop at a breakpoint on your if and modify the variable(s) evaluated in the conditional such that it returns false (from the "Variables" view, right click on a variable and click "Change Value...")

提交回复
热议问题