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

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

# Function: projectThreadLocation()

> **projectThreadLocation**(`thread`, `mapper`): [`MappedLocation`](../interfaces/MappedLocation.md) \| `null`

Defined in: [packages/b2c-tooling-sdk/src/operations/debug/projections.ts:127](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/4c2d4c5cb34e8e0ea15a260d257e468c823c4885/packages/b2c-tooling-sdk/src/operations/debug/projections.ts#L127)

Project the top-of-stack location for a thread, mapping the script path.
Returns null if the thread has no call stack.

## Parameters

### thread

[`SdapiScriptThread`](../interfaces/SdapiScriptThread.md)

### mapper

[`SourceMapper`](../interfaces/SourceMapper.md)

## Returns

[`MappedLocation`](../interfaces/MappedLocation.md) \| `null`
