Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dap-java-vm-args custom variable #450

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

mauricio-ms
Copy link
Contributor

@mauricio-ms mauricio-ms commented Aug 26, 2023

This variable allow define which vm args will be used to define the debug templates for the dap-java-debug function.

With that, functions can be defined to set custom variables per project.

Here is an example that I'm using for my Java Projects:

(defun update-dap-java-vm-args ()
  "Update vm arguments used by dap-java package to debug applications."
  (let ((project-name (projectile-project-name)))
	(setq dap-java-vm-args (format "-Dservice=%s -Dversion= -Dspring.profiles.active=%s"
								   project-name
								   (downcase env)))))

…ll be used to define the debug templates for the dap-java-debug function
@mauricio-ms
Copy link
Contributor Author

Hi @yyoncho, the CI has failed for windows, do you know if it's a matter of re-run or if it's really a problem?

@yyoncho yyoncho merged commit bc89297 into emacs-lsp:master Aug 27, 2023
11 of 12 checks passed
@yyoncho
Copy link
Member

yyoncho commented Aug 27, 2023

It is all good. Thank you.

@mauricio-ms mauricio-ms deleted the feat-add-vm-args branch August 27, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants