<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [ConsoleMessage](./puppeteer.consolemessage.md) &gt; [stackTrace](./puppeteer.consolemessage.stacktrace.md)

## ConsoleMessage.stackTrace() method

<b>Signature:</b>

```typescript
stackTrace(): ConsoleMessageLocation[];
```
<b>Returns:</b>

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

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