Reputation: 4388
So I am trying to debug my app and I am trying to determine what is causing my error but I cannot simply look at Chrome's console because it only shows me which function last called it. I am trying to trace the whole path from an event to crash. Is there a way to do such a thing? Thanks!
Upvotes: 1
Views: 80
Reputation: 781004
Set a breakpoint at the beginning of the event handler function. When the event occurs, the program will stop in the debugger. Then you can use the single-step buttons to step through the code.
See How to step through code in Google chrome javascript debugger
Upvotes: 2