However, if I introduce an error to the same line of code and run with the "break on exception" turned on, execution suspends at the line of the error.
If it matters, I can open Chrome's dev tool panel and place a breakpoint at the same line and run, and Chrome suspends at the correct line. So the breakpoint location within my JS function should definitely be getting hit.
I'm not sure what else to try. Is there some trick to getting this to work, or is it a bug in IDEA?