在Eclipse中调试时如何跳过JRE代码? [英] How can I skip JRE code when debugging in Eclipse?

查看:131
本文介绍了在Eclipse中调试时如何跳过JRE代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

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