NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
bobheath
Joined: 16 Jun 2010 Posts: 20 Location: Delray Beach, Florida, USA
|
Posted: Sat Jul 10, 2010 4:00 pm Post subject: Does a good Java Remote Debug tutorial exist? |
|
|
| 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.
|
Posted: Thu Jul 15, 2010 4:38 pm Post subject: Re: Does a good Java Remote Debug tutorial exist? |
|
|
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
|
Posted: Thu Jul 15, 2010 4:57 pm Post subject: |
|
|
| 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.
|
Posted: Sat Jul 17, 2010 5:27 pm Post subject: Re: Does a good Java Remote Debug tutorial exist? |
|
|
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 |
|
 |
|
|
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
|
|