[Home](./index.md) > [puppeteer](./puppeteer.md) > [ConsoleMessage](./puppeteer.consolemessage.md) > [stackTrace](./puppeteer.consolemessage.stacktrace.md) ## ConsoleMessage.stackTrace() method Signature: ```typescript stackTrace(): ConsoleMessageLocation[]; ``` Returns: [ConsoleMessageLocation](./puppeteer.consolemessagelocation.md)\[\] The array of locations on the stack of the console message.