Function: dape-breakpoint-hits

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

Signature

(dape-breakpoint-hits CONDITION)

Documentation

Add hits breakpoint at current line with CONDITION.

An hit HITS is an string matching regex:
"\\(!=\\|==\\|[%<>]\\) [:digit:]"

Key Bindings

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

Source Code

;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape-breakpoint-hits (condition)
  "Add hits breakpoint at current line with CONDITION.
An hit HITS is an string matching regex:
\"\\(!=\\|==\\|[%<>]\\) [:digit:]\""
  (interactive
   (list
    (pcase-let ((`(_ ,operator)
                 (let (use-dialog-box)
                   (read-multiple-choice
                    "Operator" '((?= "==" "Equals") (?! "!=" "Not equals")
                                 (?< "<" "Less then") (?> ">" "Greater then")
                                 (?% "%" "Modulus"))))))
      (thread-last operator
                   (format "Breakpoint hit condition %s ")
                   (read-number)
                   (format "%s %d" operator)))))
  (if (string-empty-p condition)
      (dape-breakpoint-remove-at-point)
    (dape--breakpoint-place 'hits condition)))