在Eclipse中调试Java时移动指令指针 [英] Moving the instruction pointer while debugging Java in Eclipse

查看:218
本文介绍了在Eclipse中调试Java时移动指令指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse(伽利略)调试Java程序时,可以将指令指针直接移动到我选择的行(在当前方法中)吗?

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)?

直接将指令指针拖到Visual Studio中的方法中所需的行,但是我没有看到在Eclipse中这样做的方法(并且在文档中没有找到任何内容)

It's straightforward to drag the instruction pointer to the desired line within a method in Visual Studio, but I don't see a way to do that in Eclipse (and don't find anything about it in the docs or on google).

推荐答案

这是不可能的。

只需要在当前位置执行一些代码即可使用表达式视图,并以表达式输入代码。表达式求值所调用的方法将在当前的调试上下文中运行。

If you simply want to execute some code at the current place you can use the Expressions view and enter your code as an expression. The methods called by the expression evaluation will run in the current debugging context.

这篇关于在Eclipse中调试Java时移动指令指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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