---
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/5f9b348d598ad92ddf670da42e944b204395bdc8/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`
