Theia API Documentation v1.65.0
    Preparing search index...

    Representation of a memory provider. It is only necessary to implement a new Memory Provider if the behavior of the Debug Adapter for a given session type deviates from the Debug Adapter Protocol. Otherwise, the DefaultMemoryProvider should handle standard DAP requests and responses.

    Specific peculiarities that might require special handling include: restrictions on the formatting of memory location identifiers (only hex numbers, e.g.) or deviations from the DAP in the format of the response to a given request.

    interface MemoryProvider {
        canHandle(session: DebugSession): boolean;
        formatVariableReference?(
            session: DebugSession,
            variable?: DebugVariable,
        ): string;
        getLocals?(session: DebugSession): Promise<VariableRange[]>;
        readMemory(
            session: DebugSession,
            readMemoryArguments: ReadMemoryArguments,
        ): Promise<MemoryReadResult>;
        supportsVariableReferenceSyntax?(
            session: DebugSession,
            variable?: DebugVariable,
        ): boolean;
        writeMemory?(
            session: DebugSession,
            writeMemoryArguments: WriteMemoryArguments,
        ): Promise<WriteMemoryResponse>;
    }
    Index

    Methods