Skip to content

probe-web / @probe-web/client / index / SourceProvider

Interface: SourceProvider

Defined in: sources.ts:35

Finds source text for the DWARF paths probe-rs reports. Implemented by DirectorySourceProvider and UrlSourceProvider; implement it yourself to serve sources from anywhere else.

Methods

read()

ts
read(path): Promise<string | null>;

Defined in: sources.ts:37

Source text for a DWARF path, or null if this provider has no such file.

Parameters

ParameterType
pathstring

Returns

Promise<string | null>


resolve()

ts
resolve(path): Promise<string | null>;

Defined in: sources.ts:39

The workspace-relative path a DWARF path maps to (for display and breakpoints), or null.

Parameters

ParameterType
pathstring

Returns

Promise<string | null>