Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] How to enable JDWP trace

Hi, I just thought I'd mention this here as it appears to be undocumented and might help someone else. If you want to enable JDWP tracing, do something like this (path names are for Mac):

$ cd /Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.jdt.debug_3.10.1.v20160811-0441
$ echo -e "User.verbose=true\nVerbose.out=/tmp/eclipse.verbose.out" > jdi.ini
$ jar uvf jdimodel.jar jdi.ini

and then in /tmp/eclipse.verbose.out you will see (e.g.)

Sending command (VIRTUAL_MACHINE - VERSION)
length                00 00 00 0b
id                    00 00 00 01
flags                 00                                               <none>
command set           01
command               01

Received reply
length                00 00 00 f2
id                    00 00 00 01
flags                 80                                               REPLY_PACKET
error code            00 00                                            NONE
version descr.        <string>                                         Java Debug Wire Protocol (Reference Implementation) version 1.8
JVM Debug Interface version 1.2
JVM version 1.8.0-internal (OpenJDK 64-Bit Server VM, compiled mode, sharing)
major version         00 00 00 01
minor version         00 00 00 08
version               <string>                                         1.8.0-internal
name                  <string>                                         OpenJDK 64-Bit Server VM

If there's an easier way of enabling this please let me know (e.g. a more convenient classpath location).

Cheers,

David

Back to the top