diff --git a/README.org b/README.org index 8c4a2529..7aa2c8ce 100644 --- a/README.org +++ b/README.org @@ -158,15 +158,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=