Function: dape--breakpoint-find-file-hook
dape--breakpoint-find-file-hook is a natively compiled function
defined in dape.el.
Signature
(dape--breakpoint-find-file-hook)
Documentation
Add overlays to breakpoints in current buffer.
Called as a hook in find-file-hook.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--breakpoint-find-file-hook ()
"Add overlays to breakpoints in current buffer.
Called as a hook in `find-file-hook'."
(when-let* ((buffer-file-name (buffer-file-name)))
(cl-loop for breakpoint in dape--breakpoints
when (dape--source-breakpoint-p breakpoint)
for filename = (dape--breakpoint-file-name breakpoint)
for line = (dape--breakpoint-line breakpoint)
when (and (equal buffer-file-name filename) line)
do (dape--with-line (current-buffer) line
(dape--breakpoint-make-overlay breakpoint)
(run-hooks 'dape-update-ui-hook))))
(dape--breakpoint-maybe-remove-ff-hook))