简体   繁体   中英

Does Chrome have a built-in Call Stack?

From Visual Studio, I'm accustomed to a call stack showing up at any breakpoint. Does Chrome have a call stack feature where I can see what functions preceded my breakpoint?

If not, is there a substitute (3rd party solution that works with Chrome?) that developers use to see what functions led to a breakpoint?

Edit: to be clear, I was expecting the call stack to appear within the javascript console in Chrome.

I don't know what version of Chrome you're using. I'm using Chromium 17 and the Javascript debugger looks like this when hitting a breakpoint (emphasis mine): Chromium调用堆栈

Open the Developer Tools ("SPANNER" -> Tools -> Developer Tools), select the Scripts tab, on the right there is a section called "Call Stack"

Enjoy :-D

[Version 66.0.3359.139 ]Go to Developer Tools -> Sources -> look on the right side(Call Stack).

console.trace() // To print the call stack.

https://developers.google.com/web/updates/2015/07/print-out-a-quick-stack-trace-from-the-console

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM