<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [puppeteer](./puppeteer.md) > [ConsoleMessage](./puppeteer.consolemessage.md) > [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.