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

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

# Function: resolveDebugIntervals()

> **resolveDebugIntervals**(`config`, `env`): `object`

Defined in: [packages/b2c-tooling-sdk/src/operations/debug/debug-session.ts:45](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/operations/debug/debug-session.ts#L45)

Resolve the effective poll and keepalive intervals in milliseconds.

Precedence: explicit config value, then the `SFCC_DEBUG_POLL_INTERVAL` /
`SFCC_DEBUG_KEEPALIVE_INTERVAL` environment variables, then the defaults
(500ms / 15000ms). Values below the minimum (100ms poll, 1000ms keepalive)
are raised to the minimum; non-numeric values fall back to the default.

## Parameters

### config

`Pick`\<[`DebugSessionConfig`](../interfaces/DebugSessionConfig.md), `"keepaliveInterval"` \| `"pollInterval"`\> = `{}`

### env

`ProcessEnv` = `process.env`

## Returns

`object`

### keepaliveInterval

> **keepaliveInterval**: `number`

### pollInterval

> **pollInterval**: `number`
