Java command line debugger

Is there a good command line debugger for java?

I gave JDB a chance, but the command line interface sucks. If I want to change the last line and rethink it, I will have to retype the entire line. Hitting [UP-ARROW] just gives me "^ [[A". There is also no completion for package / class / methodnames.

GDB is a good alternative, but I don't know how to debug it remotely.

I have Maven / Vim Setup and you want to use the console debugger for java, is there any way to integrate GDB or another good debugger into this setup?

Greetings Sven

+4
source share
3 answers

Here you can get a list of all command line debuggers .

It is also not quite a debugger, but definitely a command line interface for Java that can help you debug:

-3
source

Although I have not yet found a good replacement for jdb, I run jdb wrapped in readline using rlwrap . Thus, I get the history and the ability to completely edit lines, for example, in bash. Unfortunately, no completion, but rlwrap supports plug-in add-ons, so someone can write one!

+6
source

The hint for 'rlwrap' is great!

Now I am using rlwrap -f . -f tags -e "" jdb <java> <args> rlwrap -f . -f tags -e "" jdb <java> <args> , which does automatic completion based on the history and tag file (created with ctags --recurse ), which is very useful. See man rlwrap more details.

+3
source

All Articles