Remote Debug a java program

十月 12, 2007 @ 12:16 上午 | 发表在 Java | 留下评论

Add the following options while bringing up the application
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
To debug from a local machine, use
jdb -attach 8000
To debug from a remote machine, use
jdb -connect com.sun.jdi.SocketAttach:hostname=xxx.xx.xxx.xx,port=8000

Advertisements

发表评论 »

RSS feed for comments on this post. TrackBack URI

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

通过访问 WordPress.com 创建免费网站或博客.
Entries评论 feeds.

%d 博主赞过: