|
|
Re: How to attach debugger to running process? [message #262672 is a reply to message #262454] |
Tue, 20 July 2004 16:12 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02291 seconds