---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/debug](../index.md) / SourceMapper

# Interface: SourceMapper

Defined in: [packages/b2c-tooling-sdk/src/operations/debug/source-mapping.ts:17](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/debug/source-mapping.ts#L17)

## Methods

### toLocalPath()

> **toLocalPath**(`scriptPath`): `string` \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/operations/debug/source-mapping.ts:21](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/debug/source-mapping.ts#L21)

Convert an SDAPI script_path to a local filesystem path.

#### Parameters

##### scriptPath

`string`

#### Returns

`string` \| `undefined`

***

### toServerPath()

> **toServerPath**(`localPath`): `string` \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/operations/debug/source-mapping.ts:19](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/debug/source-mapping.ts#L19)

Convert a local filesystem path to an SDAPI script_path.

#### Parameters

##### localPath

`string`

#### Returns

`string` \| `undefined`
