1

For learning purposes I would like to use a tool to be able to watch the javascript stack as I write a trivial program with either break points or places where I program in pauses. This is a part of my attempt to become more educated about computer science. If that isn't possible then maybe a way to have snapshots of the stack at different points in the program.

I'm flailing here because I don't know what I'm talking about.

edit

Is a stack trace what I'm looking for? I just have to trigger a stack trace when I want to see the state of the stack?

5
  • What exactly are you trying to accomplish? Also, related: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… Commented Jul 1, 2014 at 0:08
  • I found this. Might help: stackoverflow.com/questions/2060272/… Commented Jul 1, 2014 at 3:08
  • For educational purposes I want to look at the stack at different points while running a trivial script. I'm trying to observe the stack in action. For example I might want to make a simple recursive function that divides a number and see a snapshot of the state of the stack in each recursion. Commented Jul 2, 2014 at 0:26
  • Thanks for the link. it is helpful but I won't know if it solves my problem til I try it sometime in the next few days. Commented Jul 2, 2014 at 0:27
  • I assume you are using js in the browser? developer.chrome.com/devtools/docs/javascript-debugging If not, native V8 has debug api as well, but it's a bit more complicated to set up. Commented Apr 23, 2015 at 13:40

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.