MCPcopy Create free account
hub / github.com/Marus/cortex-debug / removeWatchExpr

Method removeWatchExpr

src/frontend/views/live-watch.ts:573–584  ·  view source on GitHub ↗
(node: LiveVariableNode)

Source from the content-addressed store, hash-verified

571 }
572
573 public removeWatchExpr(node: LiveVariableNode) {
574 try {
575 if (this.variables.removeChild(node)) {
576 this.saveState();
577 this.fire();
578 }
579 }
580 catch (e) {
581 // Sometimes we get a garbage node if this is called while we are (aggressively) polling
582 console.error('Failed to remove node. Invalid node?', node);
583 }
584 }
585
586 public editNode(node: LiveVariableNode) {
587 if (!node.isRootChild()) {

Callers 1

removeLiveWatchExprMethod · 0.80

Calls 3

saveStateMethod · 0.95
fireMethod · 0.95
removeChildMethod · 0.45

Tested by

no test coverage detected