Introduction
So really annoying thing is that a colleague has a habit of committing his breakpoints as debugger; directly into the sourcecode.
It's annoying because you either have to disable all breakpoints, or you have to suffer through their debug statements in order to use your own.
Question
So, what process do you guys have to work around this? I have thought of three different options (next).
My current options
I'm going to add my options here since they are also a valid answer. Looking forward however to other people's answers as well.
- Add conditional breakpoints in debug tools evaluating to false.
- Instead of calling
debugger;wrap this in a custom function. Put an if statement inside with a flag true/false so that you can disable them in one shot. - Remove
debuggerstatements during source file processing in gulp.
I'm going to add my options here since they are also a valid answer. Looking forward however to other people's answers as well.
debugger;wrap this in a custom function. Put an if statement inside with a flag true/false so that you can disable them in one shot.debuggerstatements during source file processing in gulp.