bjdwp man page

bjdwp — Command line USB Blackberry Java Debug Wire Protocol

Synopsis

bjdwp [-h][-p pin][-P password][-v] address port

Description

bjdwp is a program that supports the Java Debug Wire Protocol over USB, which enables debugging of Java programs directly on your Blackberry.

Support is experimental, and development is focused primarily on the BlackBerry Storm.

Options

-p pin

PIN of device to talk with.  Only needed if you have more than one Blackberry connected at once.

-P password

Simplistic method to specify device password.  In a real application, this would be done using a more secure prompt.

-v

Dump verbose protocol data during operation.

-h, --help

Show summary of options.

Arguments

The following arguments are required, in order to provide a socket where the JDWP server will listen for connections from the debugger.

address

Most often 'localhost' but can be any IP or hostname on the machine running bjdwp.

port

Port to listen on.

Examples

Start the server and the USB connection to the device:

bjdwp localhost 8000

Then start your java debugger:

jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000

Author

bjdwp was initially written for the Barry project by Nicolas VIVIEN. This manual page was written by Chris Frey.

See Also

http://www.netdirect.ca/software/packages/barry

Info

September 29, 2009