Skip to content

Commit

Permalink
Mention eglot-workspace-configuration for jdtls configuration (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudi authored Jan 15, 2025
1 parent 7a3e6f8 commit c3b61de
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,23 @@ See https://github.com/ruby/debug for more information
See https://github.com/eclipse-jdtls/eclipse.jdt.ls for installation of JDTLS.
See https://github.com/microsoft/java-debug for installation of the Java Debug Server plugin.
The Java config depends on Eglot running JDTLS with the plugin prior to starting Dape.
Extend ~eglot-server-programs~ as follows to have JDTLS load the plugin:
Either globally extend ~eglot-server-programs~ as follows to have JDTLS always load the plugin:
#+begin_src emacs-lisp
(add-to-list 'eglot-server-programs
`((java-mode java-ts-mode) .
'((java-mode java-ts-mode) .
("jdtls"
:initializationOptions
(:bundles ["/PATH/TO/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-VERSION.jar"]))))
#+end_src

Alternatively, set the variable ~eglot-workspace-configuration~ in the file =.dir-locals.el= in a project's root directory, to have JDTLS load the plugin for that project:
#+begin_src emacs-lisp
;; content of /project/.dir-locals.el
((nil . ((eglot-workspace-configuration
. (:jdtls (:initializationOptions
(:bundles ["/PATH/TO/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-VERSION.jar"])))))))
#+end_src

** PHP - Xdebug
1. Install and setup =Xdebug= see [[https://github.com/xdebug/vscode-php-debug][instructions]]
2. Install =node=
Expand Down

0 comments on commit c3b61de

Please sign in to comment.