Breakpoints in JS
Instead of going to the specific js file and add a breakpoint with your JS console on your browser, just add this to your code and you're done:
debugger;
Written by Raúl Barroso
Related protips
3 Responses
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/28243/175656c5ee4c4e328e91103078c57aa5.jpeg)
empty?
over 1 year ago
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/30844/7004315306_b68b5325a2_o.jpg)
@zigotica Fixed! It wasn't empty before they changed their markdown interpreter. Thanks!
over 1 year ago
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/28243/175656c5ee4c4e328e91103078c57aa5.jpeg)
cool. woooooow, that's it?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Debug
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#