Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 940
Danny Avatar asked May 25 '12 22:05

Danny


People also ask

How do I view call stack in Chrome?

View the Call Stack To view the call stack, open DevTools Sources panel and on the right panel, expand the Call Stack panel to see all the current functions in the call stack.

How can I see my call stack?

View the call stack while in the debugger While debugging, in the Debug menu, select Windows > Call Stack or press ctrl + alt + C . A yellow arrow identifies the stack frame where the execution pointer is currently located.


2 Answers

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 call stack

like image 199
Niklas B. Avatar answered Oct 05 '22 15:10

Niklas B.


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

Enjoy :-D

like image 25
Endophage Avatar answered Oct 05 '22 16:10

Endophage