Neovim for Beginners — Java Debugging

Use Neovim to debug a Java application.



Neovim for Beginners — java Debugging

We configure Neovim for Java development in the previous article. In this article, we will configure debugging for Java using nvim-dap.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Getting Started

To support debugging, we need to install java-debug and vscode-java-test.

  • For java-debug installation, follow the instructions here.
  • For vscode-java-test installation, follow the instructions here.

Alternatively, we can use the following Shell script.

Install Java Debuggers

The script installs the repositories under $HOME/.local/share/nvim.



  • In the after/plugin/java.lua file add the lines to configure the debugger location and configuration bundles.


Debugging should work now. Let’s test out using the Spring Boot project.




Software engineer, Data Science and ML practitioner.