在Eclipse中调试时如何跳过JRE代码? [英] How can I skip JRE code when debugging in Eclipse?
问题描述
在Eclipse中调试时,我进入(F5)一个如下语句,
When debugging in Eclipse, I step into (F5) a statement such as the following,
encryptedBytes = LightWeightEncryptor.encrypt(messageBytes, password.toCharArray());
调试器进入JRE方法String.toCharArray(),但我希望它跳过它和步骤进入我自己的代码,LightWeightEncryptor.encrypt。
the debugger steps into JRE method String.toCharArray(), but I want it to skip that and step into my own code, LightWeightEncryptor.encrypt.
我厌倦了不得不退出JRE代码并退回到自己的代码中。我已经看到很多方法可以进入JRE代码,但我找不到避免它的方法。
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.
推荐答案
尝试Eclipse菜单:Window - > Preferences - > Java | Debug | Step Filtering。
Try Eclipse menu : Window -> Preferences -> Java|Debug|Step Filtering.
切换使用步骤过滤器,您可以从复选框列表中选择步骤过滤器。
Toggle "Use Step Filters", you may choose the step filters from the checkbox list.
例如检查java。*,然后跳过JRE方法String.xxx()。
E.g. check "java.*", then the JRE method String.xxx() will be skipped.
这篇关于在Eclipse中调试时如何跳过JRE代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!