论坛首页 入门技术论坛

java remote debug in jdk 5.0

浏览 1992 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-08-08  
Two ways we can use now:
1. use java listen to a port, let jdb connect to it
$java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y Demo
Listening for transport dt_socket at address: 33586

$jdb -attach 33586


2. use jdb listen to a port, let java connect to it
$jdb -listen 9090

$java -agentlib:jdwp=transport=dt_socket,address=localhost:9090 Demo


old -Xrunjdwp has been deprecated
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics