Eclipse 进入调试
我只是将 Eclipse 放在我的笔记本电脑上,当我使用 Step Into 调试工具时,它不仅仅将我带到代码的下一部分。一个例子是,如果我在数组列表上调用 .size();
,它将带我进入数组列表类并完成 .size();
所需的所有代码>
然而,在我的桌面上,它只会带我到下一段代码。我这样做:
System.out.println("hello world!");
如果我单击“步入”(从我的桌面),hello world 将出现控制台。
相比之下,如果我在笔记本电脑上“步入”System.out.println("hellow world");
,它首先会拉起 PrintStream.class,然后在多次点击 Writter.class 后出现,然后是 String.class,然后是 BufferedWritter.class 等。
我在调试时只是使用“Step Over”,但是有一些调用,一个基本的例子是 mergeSort(arr, 0, arr.size() );
如果我跨过它,它只会跳过整个事情,但如果我跨入它,它会拉起 arr.size();
方法,我会在回到我的东西之前必须点击所有这些。
在我的桌面上,我运行的是 Windows 和 Eclipse 版本 3.4.1。在我的笔记本电脑上,我运行的是 linux 和 eclipse 版本 3.5.1。
想法?建议?这有道理吗?
I just put eclipse on my laptop, and when I use the Step Into debugging tool, it doesn't just take me to the next part of my code. An example is if I call .size();
on an array list, it will take me into the array list class and through all the code required for .size();
However on my desktop it will simply take me to my next piece of code. I do:
System.out.println("hello world!");
If i click "Step Into" on that (from my desktop), hello world will appear the console.
To contrast that, if I "Step Into" System.out.println("hellow world");
on my laptop, it first pulls up PrintStream.class, then after much clicking Writter.class comes up, then String.class, then BufferedWritter.class, etc.
I have been just using "Step Over" when debugging, however there are some calls, a basic example would be mergeSort(arr, 0, arr.size());
where if I step over that, it will just skip the entire thing, but if I step into it, it will pull up the arr.size();
method and I will have to click through all of that before getting back to my stuff.
On my desktop I am running windows and eclipse version 3.4.1. On my laptop I am running linux and eclipse version 3.5.1.
Thoughts? Advice? Does that make sense?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能启用了步骤过滤器来跳过 java.*,这将跳过任何标准 java 类。
调试显示屏上有一个“使用步骤过滤器”切换开关,它是一个向右和向下的两个箭头。
You probably have the step filters enabled to skip java.*, which would skip over any standard java classes.
There is a Use Step Filters toggle on your debug display, it's a two headed arrow, right and down.
您可以单击调试视图工具栏上的“使用步骤过滤器”按钮,在调试过程中跳过内置包。您可以在首选项中配置要跳过哪些包(Java > 调试 > 单步过滤)。
You can click the "Use Step Filters" button on the debug view toolbar to skip over built-in packages during debugging. You can configure which packages are stepped over in the preferences (Java > Debug > Step Filtering).