FutureTask.class debugging inside an asynctask
<p>I have two methods in my app, that's not working properly and I want to debug these two. But the FuturTask.class error keep showing up. The <code>searchForBluetoothFolder()</code> method is called from an <code>AsyncTask</code>, <code>doInBackground()</code> method. I should also mention that the code works on my Samsung S3, but not on my LG Optimus 2X which is the phone that is question is all about. </p>

<p>So here is my two methods:</p>

<pre><code>public String searchForBluetoothFolder() {
    String splitchar = "/";
    File root = Environment.getExternalStorageDirectory();
    List&lt;File&gt; btFolder = null;
    String bt = "bluetooth";
    try {
        btFolder = folderSearchBT(root, bt);
    } catch (FileNotFoundException e) {
        Log.e("FILE: ", e.getMessage());
    }

    for (int i = 0; i &lt; btFolder.size(); i++) {

        String g = btFolder.get(i).toString();

        String[] subf = g.split(splitchar);

        String s = subf[subf.length - 1].toUpperCase();

        boolean equals = s.equalsIgnoreCase(bt);

        if (equals)
            return g;
    }
    return null; 
}

public List&lt;File&gt; folderSearchBT(File src, String folder) throws FileNotFoundException {
    android.os.Debug.waitForDebugger();
    List&lt;File&gt; result = new ArrayList&lt;File&gt;();

    File[] filesAndDirs = src.listFiles();
    List&lt;File&gt; filesDirs = Arrays.asList(filesAndDirs);

    for (File file : filesDirs) {
        result.add(file); // always add, even if directory
        if (!file.isFile()) {
            List&lt;File&gt; deeperList = folderSearchBT(file, folder); 
            result.addAll(deeperList);
        }
    }
    return result;
}
</code></pre>

<p>I need to see what the <code>btFolder</code> contains, in this codesnippet:</p>

<pre><code>try {
        btFolder = folderSearchBT(root, bt);
    } catch (FileNotFoundException e) {
        Log.e("FILE: ", e.getMessage());
    }
</code></pre>

<p>but when I hit <code>F6</code> to do a <code>step over</code> in eclipse the only thing I get is the: <code>FutureTask.class: Not found</code></p>

<p>I've read that this problem occurs when I try to debug code thats not mine, but in this case, the code I try to debug is code that I've written? </p>

<p>Can anybody explain why this is happening in this particular case, or even give me the solution? </p>

<p>Thanks in advance! </p>
