Function: dape-breakpoint-function

dape-breakpoint-function is an interactive and natively compiled function defined in dape.el.

Signature

(dape-breakpoint-function NAME)

Documentation

Add function breakpoint for function NAME.

Key Bindings

ctl-x-map C-a F dape-global-map F global-map C-x C-a F help-quick-use-map C-x C-a F

Source Code

;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape-breakpoint-function (name)
  "Add function breakpoint for function NAME."
  (interactive
   (let ((default (when-let* ((sym (thing-at-point 'symbol)))
                    (substring-no-properties sym))))
     (list (read-string (format-prompt "Function name" default) nil nil default))))
  (push (make-dape--function-breakpoint :name name) dape--breakpoints)
  (dolist (conn (dape--live-connections))
    (when (dape--initialized-p conn)
      (dape--set-function-breakpoints conn)))
  (dape--display-buffer (dape--info-get-buffer-create 'dape-info-breakpoints-mode))
  (run-hooks 'dape-update-ui-hook))