1

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!

2
  • 2
    Can't you turn on "Pause on all Exceptions" in your developer tools Sources tab? Then the script should pause on your error and you can look at the call stack on the right hand side (of the Sources tab still). Commented Jul 24, 2013 at 13:58
  • The solution which @Barmar proposed worked perfectly. However, your solution sounds very promising as well! I will definitely give it a try next time! Commented Jul 24, 2013 at 16:59

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.