Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Source lookup question



>
> client with phpeclipse, internal xdebug proxy and local copy of src scripts.
> server with apache/php/xdebug and remote src scripts.
>
> in debug launch configuration have a list of local to remote path mapping.
> inside stackframe have remote script path, after breakpoint is honored.
> to show local src have to compare remote path to all mapping pairs path
> and find the right ones.
>
> my question is, where is the right place to do it? inside
> SourceLookupParticipant or have to implements a SourceContainer
>

It sounds like your source is local, and there are already ISourceContainer implementations in the debug platform for local source (directories, zips, etc). What you need to do is initialize your source lookup director with the correct set of source containers. You can contribute a "source path computer" via your launch configuration type extension (via the sourcePathComputerId attribute which refers to a sourcePathComputer extension), or override #getSourcePathComputer() to do the work in code (on the source lookup manager).

There is a module on source lookup in the debug tutorial.

        http://www.eclipse.org/eclipse/debug/documents/ec_2007/Debug_Tutorial_2007.pdf

Darin Wright

Back to the top