前两个答案似乎错过了这个话题,除非是我不了解这个问题。
我的理解是我自己搜索的一个功能,就是要跳过一行(当进入代码),并将程序计数器(将汇编词汇表)设置到给定行。可能有趣的是跳过一些昂贵的对象创建,看到一些错误情况等。我曾经在Visual Studio(C或C ++代码)中执行此操作。
我避风港在Eclipse中,也没有发现NetBean。这可能是JVM的限制,或者执行某些策略...
运行到行命令执行,当然,所有在当前执行位置和指定的执行位置之间的行。
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 can't find it in eclipse. Is there a way to do it without changing code?
解决方案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.
更多推荐
如何在eclipse java调试器中设置当前的执行行?
发布评论