How can I set the current line of execution in the eclipse java debugger?

前端 未结 5 1825
野性不改
野性不改 2020-12-25 12:34

I want to force the current execution line to a specific line in the same function, possibly skipping intermediate lines. All my old school debuggers had this feature, but I

5条回答
  •  一生所求
    2020-12-25 13:01

    I too have long sought this feature, and "Run to line" is not the same thing.

    This may well be a limitation of the JVM. Java does not implement goto, though it does have jump statements, like break and continue. Those are at the block level however. If this is a JVM limitation, my guess is that it is more likely due to the security architecture. Tight control of the program counter is debilitating for interlopers, like viruses -- and sadly debuggers.

提交回复
热议问题