在Eclipse中调试时如何跳过JRE代码?

时间:2021-06-21 20:45:05

When debugging in Eclipse, I step into (F5) a statement such as the following,

当在Eclipse中调试时,我进入(F5)一个语句,如下所示,

encryptedBytes = LightWeightEncryptor.encrypt(messageBytes, password.toCharArray());

the debugger steps into JRE method String.toCharArray(), but I want it to skip that and step into my own code, LightWeightEncryptor.encrypt.

调试器步骤进入JRE方法String.toCharArray(),但我希望它跳过这一步,并进入我自己的代码,LightWeightEncryptor.encrypt。

I get tired of having to step out of the JRE code and step back into my own. I've seen lots of ways to step into JRE code, but I can't find a way to avoid it.

我厌倦了不得不退出JRE代码并回到我自己的代码中。我已经看到了很多进入JRE代码的方法,但是我找不到避免它的方法。

1 个解决方案

#1


17  

Try Eclipse menu : Window -> Preferences -> Java|Debug|Step Filtering.

尝试Eclipse菜单:窗口->首选项-> Java|调试|步骤过滤。

Toggle "Use Step Filters", you may choose the step filters from the checkbox list.

切换到“使用步骤过滤器”,您可以从复选框列表中选择步骤过滤器。

E.g. check "java.*", then the JRE method String.xxx() will be skipped.

如检查“java。然后跳过JRE方法String.xxx()。

#1


17  

Try Eclipse menu : Window -> Preferences -> Java|Debug|Step Filtering.

尝试Eclipse菜单:窗口->首选项-> Java|调试|步骤过滤。

Toggle "Use Step Filters", you may choose the step filters from the checkbox list.

切换到“使用步骤过滤器”,您可以从复选框列表中选择步骤过滤器。

E.g. check "java.*", then the JRE method String.xxx() will be skipped.

如检查“java。然后跳过JRE方法String.xxx()。