Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Debug Java Application using VIM/GVIM?

I asked this question previously (any-good-tutorial-for-moving-from-eclipse-to-vim)

From the inputs, I started using GVIM instead of Eclipse. I added ctags to it and I am able to navigate now comfortably.

The only problem left for me is "Debugging"? I tried searching for some links, and couldn't find a useful one?

If anyone using or familiar with Java Debugging using vim/Gvim, can provide their inputs/ links/tutorials, it would be very helpful.

like image 831
Techmaddy Avatar asked Feb 13 '09 07:02

Techmaddy


People also ask

Can you debug using Vim?

Vim added a built-in debugger officially in version 8.1, released in May 2018. The feature had been present in some of the version 8.0 releases as well, as early as August 2017. The following vim commands load the plugin and start the debugger.

How do you debug in Java?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead. Either actions mentioned above creates a new Debug Launch Configuration and uses it to start the Java application.

Can we debug Java code in Visual Studio?

Visual Studio Code allows you to debug Java applications through the Debugger for Java extension. It's a lightweight Java debugger based on Java Debug Server, which extends the Language Support for Java™ by Red Hat.


1 Answers

Your best bet seems to be integration of the command line debugger jdb, one such solution is yavdb, another is JavaKit.

like image 114
Morendil Avatar answered Sep 22 '22 04:09

Morendil