This is the same symptom as item 2477253, with a sample project as attachment: The debugger does not seem able to find source files within eggs.
The attached sample project contains:
- Two egg files (generated with setuptools V0.9c9-py26)
- Each egg file contains the following structure:
+ root
+ setup.py
+ setup.pyc
+ eggX
+ __init__.py
+ __init__.pyc
+ sample.py
+ sample.pyc
... And additional egg stuff
- Each sample.py contains sampleFunction, which prints the egg it is found in.
- The test.py scripts calls both implementations of the function.
Problem: When debugging test.py, and stepping into the calls to sampleFunction, Pydev asks for a
location for the sample.py source file, which cannot be found in the filesystem.
It can find the .pyc files, as stepping over the calls works.
Hint #1: The suggested path to the sample.py file matches the temporary directory
used by setuptools when generating the .egg.
Hint #2: If you generate your own eggs, be sure to clean setuptools' temp dirs,
or pydev may find the original .py files there.
Hint #3: When in test.py, Ctrl-Click works so PyDev _is_ able to find the source, somehow...
Sample project