Browse Source

Only resolve unresolved breakpoints

* indium-breakpoint.el (indium-breakpoint--update-after-script-source-set): When
a script is parsed, only resolve breakpoints that are not yet resolved for that
script.
workspaces
Nicolas Petton 4 years ago
parent
commit
9aa37fc912
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      indium-breakpoint.el

+ 5
- 4
indium-breakpoint.el View File

@ -222,10 +222,11 @@ If there is no overlay, make one."
"Attempt to resolve unresolved breakpoints for SCRIPT."
(indium-breakpoint--resolve-breakpoints-in-all-buffers
(lambda (brk)
(eq script
(indium-script-find-from-file (indium-location-file
(indium-script-generated-location
(indium-breakpoint-location brk))))))))
(and (indium-breakpoint-unresolved-p brk)
(eq script
(indium-script-find-from-file (indium-location-file
(indium-script-generated-location
(indium-breakpoint-location brk)))))))))
;; Update/Restore breakpoints
(add-hook 'indium-update-script-source-hook #'indium-breakpoint--update-after-script-source-set)


Loading…
Cancel
Save