Skip to content

[DAP] Add API for dynamic URI-path mapping #173

@agarciadom

Description

@agarciadom

In some cases, we may not know in advance all the script URIs we may be accessing, so it may not be possible to provide an exhaustive map from script URIs to filesystem paths. Instead, we may want to have some pieces of logic that can do the mapping between script URIs and filesystem paths on the fly.

It may be good to add an API to EpsilonDebugAdapter that supports objects that have this logic. For instance, they could implement a Java interface with two methods:

interface IURIPathMapper {
  Path mapURI(URI uri);
  URI mapPath(Path path);
}

We need a bidirectional mapping as we do URI-to-Path when we hit a breakpoint, and Path-to-URI when we resolve the breakpoints requested by the client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions