Skip to content

Commit bc89297

Browse files
authored
add dap-java-vm-args custom variable to allow define which vm args will be used to define the debug templates for the dap-java-debug function (#450)
1 parent 70d2d3c commit bc89297

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dap-java.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
:group 'dap-java
5151
:type 'string)
5252

53+
(defcustom dap-java-vm-args nil
54+
"VmArgs which will be used for debug configuration."
55+
:group 'dap-java
56+
:type 'string)
57+
5358
(defcustom dap-java-compile-port 33000
5459
"The debug port which will be used for compile/attach configuration.
5560
If the port is taken, DAP will try the next port."
@@ -231,6 +236,7 @@ initiate `compile' and attach to the process."
231236
(defun dap-java--populate-default-args (conf)
232237
"Populate all of the fields that are not present in CONF."
233238
(setq conf (plist-put conf :type "java"))
239+
(plist-put conf :vmArgs dap-java-vm-args)
234240

235241
(setq conf (pcase (plist-get conf :request)
236242
("launch" (dap-java--populate-launch-args conf))

0 commit comments

Comments
 (0)