Java jdb remote debugging command line tool

Does anyone have any experience using this? if so, is it worth it?

+5
java jdb
Sep 17 '08 at 21:31
source share
4 answers

I first used jdb yesterday and am very pleased with the results. You see, I program in Eclipse on my laptop and then deploy to a virtual machine to make sure all shebang is still working. Very often, I will have to work on something that runs autonomously, like a command line. These things sometimes require debugging.

This has always been a problem because I don’t want to worry about installing Eclipse in a virtual machine (it’s already slow enough!), But I don’t know how easy it is to plug it into my command line class before it finishes working.

jdb to the rescue! It works - small and functional, almost to the extent that it is bare ... it makes you use your mind more than use the tool (as I said here ).

Be sure to print the link ( solaris , windows , java 1.5 - I think they all look the same) and open the source code and can be viewed on the second screen. I hope you have a second screen, or you will press a lot.

+4
Oct 03 '08 at 5:51
source share

Suppose your program is running with the following command:

java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=<port> <class> 

This process can be linked using jdb:

 jdb -attach <port> 
+3
Mar 13 2018-12-12T00:
source share

I prefer using remote debugging tools in eclipse.

-one
Sep 18 '08 at 1:43
source share

JDB is incredibly difficult to use. Placing System.outs or using the IDE debugger will give better results. And for more interesting functions (for example, thread tracking, heap size, etc.) you can get information graphically using the JConsole tool.

-four
Sep 18 '08 at 1:46
source share



All Articles