branch: externals/dape commit c3b61dee0ac3e2ee77d191bf6b8d0bda966b6c06 Author: Rudolf Schlatte <r...@constantly.at> Commit: GitHub <nore...@github.com>
Mention eglot-workspace-configuration for jdtls configuration (#181) --- README.org | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 6c432c2f4d..5a2d3dea90 100644 --- a/README.org +++ b/README.org @@ -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=