如何在eclipse java调试器中设置当前的执行行? [英] How can I set the current line of execution in the eclipse java debugger?

查看:304
本文介绍了如何在eclipse java调试器中设置当前的执行行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想强制当前执行行在同一个函数中的特定行,可能跳过中间行。我所有的旧校园调试器都有这个功能,但是我在日食中找不到。有没有办法做,而不改变代码?

解决方案

前两个答案似乎错过了这个话题,除非是我不了解这个问题。



我的理解是我自己搜索的一个功能,就是要跳过一行(当进入代码),并将程序计数器(将汇编词汇表)设置到给定行。可能有趣的是跳过一些昂贵的对象创建,看到一些错误情况等。我曾经在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调试器中设置当前的执行行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆