4 ms·
This is great, besides the Sources tab, I use DOM and Event breakpoints a ton to debug a lot of problems. Something, I'm not sure if most people know, if you b
by codezero 8y ago
This is great, besides the Sources tab, I use DOM and Event breakpoints a ton to debug a lot of problems.
Something, I'm not sure if most people know, if you break somewhere (whether event or DOM), you can access the currently in scope variables directly in the console. It's extremely useful for finding out what's going on with something in the middle of hairy code at a specific point in time.
- slig 8y agoIt's also possible to change the value of these variables and test different code paths.
- codezero 8y agoYou're right! I was going to say that, but I didn't remember off the top of my head if that was true :)
- kaycebasques 8y agoMore on the different types of breakpoints available in Chrome DevTools: https://developers.google.com/web/tools/chrome-devtools/javascript/breakpoints https://developers.google.com/web/tools/chrome-devtools/java...