---
sidebar_label: ConsoleMessage.stackTrace
---

# ConsoleMessage.stackTrace() method

**Signature:**

```typescript
class ConsoleMessage {
  stackTrace(): ConsoleMessageLocation[];
}
```

**Returns:**

[ConsoleMessageLocation](./puppeteer.consolemessagelocation.md)\[\]

The array of locations on the stack of the console message.