You can enable inspection JavaScript | JavaScript validity issues | 'debugger' statement and set an error highlighting level for it. If you have .idea folder of your project shared in VCS, other teammates will get it enabled too.