beautypg.com

B.2.4 debugging, B.2.4, Debugging – Sun Microsystems J2ME User Manual

Page 119

background image

Appendix B

Command Line Reference

107

remove=[<

storage_name

> | <

storage_number

> | all]

Remove a previously installed application. The application is specified by
its valid storage name or storage number. Specifying

all

, all previously

installed applications are removed.

transient=<

jad_file_url

>

Install, run, and remove the application with the specified JAD file.
Specifying

transient

causes the application to be installed and run and

then removed three times.

B.2.4

Debugging

You can use the following options with the emulator for debugging and tracing.

-Xverbose:

<trace_options>

Display trace output, as specified by a list of comma-separated options:

class

: trace class loading

gc

: trace garbage collection

all

: use all tracing options

-Xdebug

Enable runtime debugging. The

-Xrunjdwp

option must also be used.

-Xrunjdwp:

<debug_settings>

Start a JDWP debug session, as specified by a list of comma-separated debug
settings. The

-Xdebug

option must also be used. Valid debug settings include:

transport=

<transport_mechanism>

The transport mechanism used to communicate with the debugger. The only
transport mechanism supported is

dt_socket

.

address=

<host:port>

The transport address for the debugger connection. You can omit providing a
host. If host is omitted, localhost is assumed to be the host machine.

server=

{y|n}

Start the debug agent as a server. The debugger must connect to the port
specified. The possible values are

y

and

n

. Currently, only

y

is supported (the

emulator must act as a server).