(func, opt_line, opt_column, opt_condition)
| 114 | |
| 115 | // Returns the resulting breakpoint id. |
| 116 | setBreakPoint(func, opt_line, opt_column, opt_condition) { |
| 117 | assertFalse(%FunctionIsAPIFunction(func)); |
| 118 | |
| 119 | const scriptid = %FunctionGetScriptId(func); |
| 120 | assertTrue(scriptid != -1); |
| 121 | |
| 122 | const offset = %FunctionGetScriptSourcePosition(func); |
| 123 | const loc = |
| 124 | %ScriptLocationFromLine2(scriptid, opt_line, opt_column, offset); |
| 125 | return this.setBreakPointAtLocation(scriptid, loc, opt_condition); |
| 126 | } |
| 127 | |
| 128 | clearBreakPoint(breakpoint) { |
| 129 | assertTrue(this.breakpoints.has(breakpoint)); |
no test coverage detected