Variable: cider-enable-nrepl-jvmti-agent
cider-enable-nrepl-jvmti-agent is a customizable variable defined in
cider-jack-in.el.
Value
nil
Documentation
When t, add -Djdk.attach.allowAttachSelf to the command line arguments.
This is required for nREPL's bundled JVMTI agent to load, which in turn
is required for eval interruption (e.g. M-x cider-interrupt (cider-interrupt)) to work
reliably on Java 21 and later -- earlier JDKs do not need it. Disabled
by default because attaching the agent has a small startup cost and
some hardened environments forbid self-attach.
This variable was added, or its default value changed, in cider version 1.15.0.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-jack-in.el
(defcustom cider-enable-nrepl-jvmti-agent nil
"When t, add `-Djdk.attach.allowAttachSelf' to the command line arguments.
This is required for nREPL's bundled JVMTI agent to load, which in turn
is required for eval interruption (e.g. \\[cider-interrupt]) to work
reliably on Java 21 and later -- earlier JDKs do not need it. Disabled
by default because attaching the agent has a small startup cost and
some hardened environments forbid self-attach."
:type 'boolean
:group 'cider
:safe #'booleanp
:package-version '(cider . "1.15.0"))