java.rst
changeset 1238 53da16ba1897
parent 1216 7a3ade740d3f
child 1269 69d8c32d7bf9
equal deleted inserted replaced
1218:c3f35f6ea0c9 1238:53da16ba1897
   166 
   166 
   167 To run Java program in debugger::
   167 To run Java program in debugger::
   168 
   168 
   169   $ jdb -cp $CLASSPATH -sourcepath $SRC_DIR
   169   $ jdb -cp $CLASSPATH -sourcepath $SRC_DIR
   170 
   170 
   171 To attach to Java application you firstly must run application with::
   171 To attach to Java application you firstly must run application with (use
       
   172 ``dt_shmem`` for Windows and ``dt_socket`` for Linux)::
   172 
   173 
   173   $ java -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=$PORT \
   174   $ java -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=$PORT \
   174     com.vendor.product.Clazz
   175     com.vendor.product.Clazz
   175 
   176 
   176 and then attach with debugger::
   177 and then attach with debugger::