Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to attach debugger to running process?
How to attach debugger to running process? [message #262445] Mon, 19 July 2004 20:11 Go to next message
Eclipse UserFriend
Originally posted by: pspiro.timberhill.com

Can someone tell me how to run the debugger and attach to a running
process?

Thanks.

-Pete
Re: How to attach debugger to running process? [message #262454 is a reply to message #262445] Mon, 19 July 2004 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

It can only be done if the running process was started in debug mode. If
it wasn't, then it can't be attached.


--
Thanks, Rich Kulp

Re: How to attach debugger to running process? [message #262672 is a reply to message #262454] Tue, 20 July 2004 16:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pspiro.timberhill.com

Rich Kulp wrote:

> It can only be done if the running process was started in debug mode. If
> it wasn't, then it can't be attached.


Okay, so let's say I start the process in debug mode. (With Forte, I do
this by using the following flags:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem.....)

Then, how do I attach to it from Eclipse?

-Pete
Re: How to attach debugger to running process? [message #262675 is a reply to message #262445] Tue, 20 July 2004 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Pete wrote:

> Can someone tell me how to run the debugger and attach to a running
> process?

Assuming a) the process was started with the appropriate debug options
to the JVM, and b) you are using Eclipse 3.0:

1) Switch to the Debug perspective.
2) From the Run menu, choose Debug... (or use the Debug button on the
toolbar)
3) In the Run Configurations dialog, choose Remote Java Application and
hit the New button.
4) Fill out the details to create the remote debug configuration.
5) Click Debug button when you've filled in all values. Eclipse will
attempt to attach to the running process.

From then on, that run configuration you created can be accessed with
the Debug toolbar button when in Debug Perspective.

HTH,
Eric
Re: How to attach debugger to running process? [message #262684 is a reply to message #262675] Tue, 20 July 2004 16:49 Go to previous message
Eclipse UserFriend
Originally posted by: pspiro.timberhill.com

That's excellent, thank you!

-Pete


Eric Rizzo wrote:

> Pete wrote:

> > Can someone tell me how to run the debugger and attach to a running
> > process?

> Assuming a) the process was started with the appropriate debug options
> to the JVM, and b) you are using Eclipse 3.0:

> 1) Switch to the Debug perspective.
> 2) From the Run menu, choose Debug... (or use the Debug button on the
> toolbar)
> 3) In the Run Configurations dialog, choose Remote Java Application and
> hit the New button.
> 4) Fill out the details to create the remote debug configuration.
> 5) Click Debug button when you've filled in all values. Eclipse will
> attempt to attach to the running process.

> From then on, that run configuration you created can be accessed with
> the Debug toolbar button when in Debug Perspective.

> HTH,
> Eric
Previous Topic:virus on newsgroup?
Next Topic:Rich Client Tutorial Part Problem
Goto Forum:
  


Current Time: Sat Nov 09 02:06:41 GMT 2024

Powered by FUDForum. Page generated in 0.02291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top