30

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.

Community
  • 1
  • 1
Techmaddy
  • 4,586
  • 5
  • 28
  • 33
  • VIM is a text editor, it has many cool features but it's not an IDE. From that link to the other question I understand that they are hosting a VIM editor inside of eclipse not the other way around, hosting a debugging session in VIM... – John Leidegren Feb 13 '09 at 07:31
  • Ya, I understand that it is an IDE and I am not using the Eclipse VIM plugin. I like VIM stand alone. I heard that we can debug CPP, PHP, etc in VI, So, my question is is there any possibility for debugging in Java. – Techmaddy Feb 13 '09 at 08:25
  • for e.g: http://xdebug.org/index.php there for PHP debugging. – Techmaddy Feb 13 '09 at 08:29
  • Can this get an update? – Tim Lieberman Sep 21 '18 at 18:56

6 Answers6

13

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

Morendil
  • 3,918
  • 20
  • 22
2

Eclim now supports a Java debugger. See http://eclim.org/vim/java/debug.html

Kannan
  • 71
  • 4
1

You may not avoid installing a standalone debugger

(like an eclipse you will use only for remote debugging your application)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

Eclim offers integration between Vim and Eclipse. It should allow you to use Eclipse's debugger in Vim

1

Debugging in Vim:

Meanwhile there is vimspector, which is

A multi language graphical debugger for Vim.

Debugging Java in Vim:

For using it with Java refer to this Section.

Note: Be aware that it requires one of the following versions:

  1. Vim 8.2 Huge build compiled with Python 3.6 or later
  2. Neovim 0.4.3 with Python 3.6 or later (experimental)
Wolfson
  • 1,187
  • 17
  • 22
-3

there is an awesome vim plugin for netbeans called jVi, at http://jvi.sourceforge.net/

aaaah
  • 1