NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Does a good Java Remote Debug tutorial exist?

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
bobheath



Joined: 16 Jun 2010
Posts: 20
Location: Delray Beach, Florida, USA

PostPosted: Sat Jul 10, 2010 4:00 pm    Post subject: Does a good Java Remote Debug tutorial exist? Reply with quote

Does a good Java Remote Debug tutorial exist somewhere or maybe a "How To"? I am using GlassFish.
Back to top
Glenn Holmer
Posted via mailing list.





PostPosted: Thu Jul 15, 2010 4:38 pm    Post subject: Re: Does a good Java Remote Debug tutorial exist? Reply with quote

On Sat, 2010-07-10 at 16:00 +0000, bobheath wrote:
Quote:
Does a good Java Remote Debug tutorial exist somewhere?

What are you going to be connecting to? An app server like GlassFish?

--
____________________________________________________________
Glenn Holmer address-removed
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601
Back to top
bobheath



Joined: 16 Jun 2010
Posts: 20
Location: Delray Beach, Florida, USA

PostPosted: Thu Jul 15, 2010 4:57 pm    Post subject: Reply with quote

Yes, the app server is GlassFish on a Linux server. The debugger, NetBeans 6.9, is running on a Windows XP box.
Back to top
Glenn Holmer
Posted via mailing list.





PostPosted: Sat Jul 17, 2010 5:27 pm    Post subject: Re: Does a good Java Remote Debug tutorial exist? Reply with quote

On Thu, 2010-07-15 at 16:57 +0000, bobheath wrote:
Quote:
Yes, the app server is GlassFish on a Linux server. The debugger is
running on a Windows XP box.

Assuming GlassFish V3:

1) In the admin console, go to Configuration / JVM settings and set
Debug to enabled. This requires a restart.

2) Mind the debug options, at the end where it says e.g. "address=9009".

3) In NetBeans, select Debug / Attach Debugger. Use the SocketAttach
connector and fill in the host on which GlassFish is running and the
port address from step 2.

4) Now you should be able to set breakpoints and inspect variables in
the debugger.

--
____________________________________________________________
Glenn Holmer address-removed
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo