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

前端 未结 5 1849
野性不改
野性不改 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 12:54

    The first two answers seem to miss the topic, unless it is me not understanding the question.

    My understanding, a feature I searched myself, is that you want to skip a number of lines (when stepping in code) and set the program counter (to take assembly vocabulary) to the given line. It might be interesting to skip some costly object creation, see some error situations, etc. I used to do that in Visual Studio (C or C++ code).

    I haven't found that in Eclipse, nor in NetBean. It might be a limitation of JVM, or an enforcement of some policy...

    The Run to line command execute, of course, all lines between the current execution position and the designated one.

提交回复
热议问题