Set breakpoint before function call from console, this could potentially be implementation of console.break()
.
Script makes global function __break
.
Parameters:
- Function name
- Mandatory
- Type: string
- Remove breakpoint
- [Optional]
- Type: boolean
Details on implementation: http://andrijac.github.io/blog/2014/01/31/javascript-breakpoint/
To set the breakpoint:
__break('foo.bar.func');
To remove the breakpoint:
__break('foo.bar.func', true);
Potentially, we could assign __break
function to console
object:
Note: this is now added to script
if(!console.break) {
console.break = __break;
}