Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Soucelookup problem

Hi Mauro,
Another thing that might help you is to use the org.eclipse.cdt.debug.core.sourcelookup.MappingSourceContainer from CDT project. There you can specify how the path from your debugger should be modified to find the correct file in the workspace.
Cheers
Pawel

webmaster@xxxxxxxxxx wrote:
Hi to all,

maybe OT.

I'm currently develop xdebug support for phpeclipse.

I've problem with source lookup:

PHP doesn't support namespace,

for examples:


if I've a project with lib.php in project root and a file lib.php in
linked folder and another file that include all, when I spep into in
linkedFolder/lib.php projectRoot/lib.php is showed.

I try to force AbstractSourceLookupParticipant implementation to find
duplicate but only show a dialog for manually select source file.

code:

public class PHPSourceLookupParticipant extends
AbstractSourceLookupParticipant {


    protected ISourceContainer[] getSourceContainers() {
        ISourceLookupDirector director = getDirector();
        if (director != null) {
            director.setFindDuplicates( true );
            return director.getSourceContainers();
        }
        return new ISourceContainer[0];
    }
}

any hint, suggest?

thank


Mauro Casciari



_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev



Back to the top