Function: dape--breakpoint-place

dape--breakpoint-place is a natively compiled function defined in dape.el.

Signature

(dape--breakpoint-place &optional TYPE VALUE SKIP-NOTIFY)

Documentation

Place and return breakpoint at current line.

TYPE is expected to be nil, log, expression, hits, or until. If TYPE is log, expression, or hits, VALUE should be a string. Unless SKIP-NOTIFY is non-nil, notify all connections. Note: removes existing breakpoints at the line before placing.

Source Code

;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--breakpoint-place (&optional type value skip-notify)
  "Place and return breakpoint at current line.
TYPE is expected to be nil, `log', `expression', `hits', or `until'.
If TYPE is `log', `expression', or `hits', VALUE should be a string.
Unless SKIP-NOTIFY is non-nil, notify all connections.
Note: removes existing breakpoints at the line before placing."
  (dape-breakpoint-remove-at-point 'skip-notify)
  (let ((breakpoint (make-dape--source-breakpoint :type type :value value)))
    (dape--breakpoint-make-overlay breakpoint)
    (push breakpoint dape--breakpoints)
    (unless skip-notify
      (dape--breakpoint-notify-changes (current-buffer)))
    breakpoint))