Eclipse进入调试 [英] Eclipse step into debugging

查看:137
本文介绍了Eclipse进入调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把eclipse放在笔记本电脑上,当我使用Step Into调试工具时,它不会让我进入我的代码的下一部分。一个例子是,如果我在数组列表中调用 .size(); ,那么这将使我进入数组列表类,并通过 .size();

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!");

如果我点击Step Into(从我的桌面), hello world 将显示控制台。

If i click "Step Into" on that (from my desktop), hello world will appear the console.

相比之下,如果我进入 System.out.println(hellow world) ;在我的笔记本电脑上,它首先拉起PrintStream.class,然后点击Writter.class,然后是String.class,然后是BufferedWritter.class等。

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.

在调试时,我一直使用Step Over,但是有一些调用,一个基本的例子是 mergeSort(arr,0,arr.size()); 如果我跳过,它将跳过整个事情,但如果我进入它,它将拉起 arr.size(); 方法,我将不得不点击所有这些,然后再回到我的东西。

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.

在我的桌面上,我正在运行Windows和eclipse版本3.4.1。在我的笔记本电脑上,我正在运行linux和eclipse版本3.5.1。

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?

推荐答案

您可能已经启用了步骤过滤器来跳过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.

这篇关于Eclipse进入调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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