Log:
Assessments - 0, GPA: 0 ( )

Instruções de Operação HP, Modelo HP NonStop G-Series

Fabricante : HP
Arquivo Tamanho: 60.28 kb
Arquivo Nome :
Língua de Ensino: en
Ir para baixar



por este dispositivo também tem outras instruções :

Facilidade de uso


Tools Home Page
jdb: Java Debugger
The jdb tool helps you find and fix errors in Java programs. For a complete description of the tool and its use, see the Sun
Microsystems documentation for jdb.

Synopsis
jdb [ options ] [ class ] [ arguments ]
Compaq Specifics
The Compaq implementation of the Java Debugger, jdb, differs slightly from the Sun Microsystems implementation. One
difference is the way you start a jdb session. There are also some additional jdb commands, described under Compaq
Command Extensions
.
Starting a jdb Session
There are two ways to use jdb for debugging. The most frequently used way is to have jdb start the java interpreter
with the class to be debugged. You do this by substituting the command jdb for the command java in the command line.
For example, to start a sample class named MyClass under jdb, use:
# jdb MyClass
When started this way, jdb invokes a second Java interpreter with any specified parameters, loads the specified class, and
stops the interpreter before executing the first instruction of that class.
The second way to use jdb is to attach it to a Java interpreter that is already running. For security reasons, Java interpreters
can be debugged only if they have been started with the -Xdebug option. When started with the -Xdebug option, the
Java interpreter prints a password for use by jdb. In addition, the debugged interpreter must not be run with a JIT
compiler. To disable the loading of any JIT compiler, use either of the java options -nojit or
-Djava.compiler=NONE.
Special debugger classes must be available to the debugged interpreter. These classes are not part of the default run-time
class libraries. To allow the debugged interpreter to locate all necessary classes, use the java option:
-Xbootclasspath:$INSTALL_DIR/jre/lib/tandemvm.jar:$INSTALL_DIR/jre/lib/rt.jar:\
$INSTALL_DIR/lib/tdmtools.jar:$INSTALL_DIR/lib/tools.jar
It is important that tandemvm.jar appear before rt.jar and that tdmtools.jar appear before tools.jar.
$INSTALL_DIR is the directory where java has been installed. In summary, launch the Java interpreter as follows:
# java -Xdebug -Djava.compiler=NONE
-Xbootclasspath:$INSTALL_DIR/jre/lib/tandemvm.jar:\
$INSTALL_DIR/jre/lib/rt.jar:$INSTALL_DIR/lib/tdmtools.jar:$INSTALL_DIR/lib/tools.jar
To attach jdb to a running Java interpreter (when the session password is known):
# jdb -host hostname -password password
For jdb to be attached to the running Java interpreter, the code in your Java class must relinquish control occasionally (at
least). The threads in NonStop Java are not preemptive; that is, a thread runs until it explicitly gives up control. A call to
Thread.sleep or Thread.yield causes the thread to relinquish control, as does an I/O operation to another process
(such as a Pathsend call or a socket call). An SQL call by means of JDBC does not relinquish control of the thread.
The jdb tool cannot be used to debug Java code that reads input from the terminal.
Compaq Command Extensions
The following are Compaq extensions to the basic jdb commands. The Java Debugger supports other commands that you
can list with the jdb help command.
obey filename
Reads commands from a file.


...

Este manual também é adequado para os modelos :
Computadores - HP NonStop L-Series (60.28 kb)

Escreva a sua própria avaliação do dispositivo



Mensagem
Seu nome :
Introduza os dois dígitos :
capcha





categorias