Help setting up debugger for java

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • nvim-dap

    Debug Adapter Protocol client implementation for Neovim

  • Last week, I followed this series to create my neovim config in lua. Everything was working fine, but there was just one feature I was missing: debugging. So I searched a little bit and found nvim-dap, a plugin for debug. I read the documentation and was able to set up a working debugger for C, C++ and Python.

  • nvim-jdtls

    Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls

  • Now, I am trying to do the same for Java, but I just can't make it work. I installed nvim-jdtls both through Packer and nvim-lsp-installer and followed their documentation here. I installed java-debug as they said and added the required jar file to the bundles in their configuration. I am also calling the jdtls.setup_dap and jdtls.start_or_attach functions inside the on_attach and lsp_installer.on_server_ready functions, respectively. Still, the debugger won't start.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • nvim-lsp-installer

    Discontinued Further development has moved to https://github.com/williamboman/mason.nvim!

  • Now, I am trying to do the same for Java, but I just can't make it work. I installed nvim-jdtls both through Packer and nvim-lsp-installer and followed their documentation here. I installed java-debug as they said and added the required jar file to the bundles in their configuration. I am also calling the jdtls.setup_dap and jdtls.start_or_attach functions inside the on_attach and lsp_installer.on_server_ready functions, respectively. Still, the debugger won't start.

  • java-debug

    The debug server implementation for Java. It conforms to the debug protocol of Visual Studio Code (DAP, Debugger Adapter Protocol).

  • Now, I am trying to do the same for Java, but I just can't make it work. I installed nvim-jdtls both through Packer and nvim-lsp-installer and followed their documentation here. I installed java-debug as they said and added the required jar file to the bundles in their configuration. I am also calling the jdtls.setup_dap and jdtls.start_or_attach functions inside the on_attach and lsp_installer.on_server_ready functions, respectively. Still, the debugger won't start.

  • dotfiles

  • My current neovim config is here. The relevant files are inside the lsp and dap folders. I tried to follow this configuration, which is from the original author of both nvim-dap and nvim-jdtls.

  • dotfiles

    Various config files from my home directory (by mfussenegger)

  • My current neovim config is here. The relevant files are inside the lsp and dap folders. I tried to follow this configuration, which is from the original author of both nvim-dap and nvim-jdtls.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Sharing my attempt at adding jdtls in my config, would love some feedback

    4 projects | /r/neovim | 2 Jul 2022
  • nvim lsp jdtl does not work properly and nvim-cmp setup

    3 projects | /r/neovim | 26 Nov 2021
  • Video explaining how to set up nvim-jdtls

    2 projects | /r/neovim | 16 Nov 2021
  • lspconfig working, now stopped

    2 projects | /r/neovim | 10 Jan 2022
  • Having the worst time trying to use JDTLS

    1 project | /r/neovim | 11 Dec 2023