Selaa lähdekoodia

debug forr tests

Borys Palka 5 vuotta sitten
vanhempi
commit
743347f79f
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      src/breakpoints/index.ts

+ 5 - 3
src/breakpoints/index.ts

@@ -15,9 +15,11 @@ export class Breakpoints extends Panel {
 
     this.service = options.service;
 
-    this.service.selectedBreakpointsChanged.connect((sender, update) => {
-      this.model.breakpoints = update;
-    });
+    if (this.service) {
+      this.service.selectedBreakpointsChanged.connect((sender, update) => {
+        this.model.breakpoints = update;
+      });
+    }
 
     this.model = new Breakpoints.IModel([]);
     this.addClass('jp-DebuggerBreakpoints');