equal
deleted
inserted
replaced
171 |
171 |
172 To run Java program in debugger:: |
172 To run Java program in debugger:: |
173 |
173 |
174 $ jdb -cp $CLASSPATH -sourcepath $SRC_DIR |
174 $ jdb -cp $CLASSPATH -sourcepath $SRC_DIR |
175 |
175 |
176 To attach to Java application you firstly must run application with (use |
176 To attach to Java application you should run application as:: |
177 ``dt_shmem`` for Windows and ``dt_socket`` for Linux):: |
|
178 |
177 |
179 $ java -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=$PORT \ |
178 $ java -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=$PORT \ |
180 com.vendor.product.Clazz |
179 com.vendor.product.Clazz |
181 |
180 |
182 and then attach with debugger:: |
181 and then attach with debugger:: |
183 |
182 |
184 $ jdb -attach $PORT |
183 $ jdb -attach $PORT |
|
184 |
|
185 For ``transport`` use: |
|
186 |
|
187 * ``dt_shmem`` for Windows |
|
188 * ``dt_socket`` for Linux |
185 |
189 |
186 Creating thread dump. |
190 Creating thread dump. |
187 ===================== |
191 ===================== |
188 |
192 |
189 Dump current thread traces and memory statistic to stdout:: |
193 Dump current thread traces and memory statistic to stdout:: |