fix setting line

pull/2156/head
yann300 3 years ago
parent 921fa123a4
commit 2d1023e600
  1. 2
      libs/remix-debug/src/code/breakpointManager.ts

@ -172,6 +172,7 @@ export class BreakpointManager {
* @param {Object} sourceLocation - position of the breakpoint { file: '<file index>', row: '<line number' }
*/
add (sourceLocation) {
sourceLocation.row -= 1
if (!this.breakpoints[sourceLocation.fileName]) {
this.breakpoints[sourceLocation.fileName] = []
}
@ -185,6 +186,7 @@ export class BreakpointManager {
* @param {Object} sourceLocation - position of the breakpoint { file: '<file index>', row: '<line number' }
*/
remove (sourceLocation) {
sourceLocation.row -= 1
const sources = this.breakpoints[sourceLocation.fileName]
if (!sources) {
return

Loading…
Cancel
Save