kdp: The KVM Debug Proxy

Availability

CLDC Reference Implementation

Synopsis

java kdp.KVMDebugProxy [options]

Description

kdp is a Java application that acts as a proxy between a JPDA-conformant debugger and a virtual machine such as the KVM. While fully featured VMs, such as those supplied with J2SE, have their own built-in implementation of the JDWP that allows them to be directly connected to a debugger, the resource constraints that apply to a typical CLDC VM do not allow a complete implementation of JDWP. The Java debug proxy interposes itself between a debugger and the VM to offload some of the implementation details from the VM.

kdp usually runs on a desktop system so as not to consume any resources on the target platform; it communicates with the KVM over a socket connection, using a cut-down version of JDWP called KDWP (the KVM Debug Wire Protocol).

Options

-classpath path

Lists the locations of copies of the class files that will be loaded in the VM being debugged. Locations, which may be directory names or JAR filenames, are separated by the platform’s path separator (i.e., a semicolon for the Windows platform or colon for Unix). This option is required only if the -p option is used.

-cp path

A synonym for -classpath.

-l localport

The port number on which the debug proxy listens for a connection from a JPDA-conformant debugger.

-p

If this argument is present, the debug proxy handles operations that involve classes locally instead of passing them to the target VM. This argument ...

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.