I have breakpoints enabled on chrome dev tools and I have a breakpoint on a line. I know chrome is hitting the line because I put the breakpoint on a line that has the following
The debugger;
tip in Chrome javascript debugger breakpoints don't do anything? helped me find where my mistake was.
I'm working on a Rails project for the first time, and there were two versions of the file without my knowing it. Rails' "asset pipeline" used a //= require foo
statement to import, and the same foo
file was also included somewhere else.
The debugger;
pointed me to the right place, thankfully.