Home » Language IDEs » Java Development Tools (JDT) » hot code replace supported in remote debugging session?
hot code replace supported in remote debugging session? [message #198013] |
Tue, 08 March 2005 21:50 |
Eclipse User |
|
|
|
Originally posted by: zhangrusi.yahoo.com
Hi,
Can anyone confirm whether or not the "hot code replace" feature is
supported when debugging a remote Java application? I am debugging Java
code in a JVM that resides in a remote process. I am able to successfully
attach the debugger to the remote JVM, set breakpoints, step through code,
etc. But when I try to edit the source code, Eclipse will not let me
change it (typing in the Java code editor has no effect).
I can use hot code replace successfully when debugging a simple Java
application that is launched via the debugger. That is, when I change the
source code and then save the file, it is automatically compiled and the
code running in the JVM is updated. I can see the changes in my debugging
session. (Note that I am simply trying to modify the body of a method,
not change any class or method signatures.)
I am using Eclipse 3.0.1. My remote JVM is:
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
I instantiate it via the invocation API, using the following startup
options:
-Xdebug
-Xrunjdwp:transport=dt_socket,address=7979,server=y,suspend= n
-Xnoagent
-Djava.compiler=NONE
-Xmx512M
Thanks and let me know if you need more info...
|
|
|
Re: hot code replace supported in remote debugging session? [message #198292 is a reply to message #198013] |
Thu, 10 March 2005 19:47 |
Eclipse User |
|
|
|
Originally posted by: jaredburns.no.spam.acm.org
Yes, HCR works for remote VM debugging.
If you can't edit the Java source file, that has nothing to do with HCR.
Sounds like you're looking at source from a JAR, so it's marked read-only.
- Jared
zhangrusi wrote:
> Hi,
>
> Can anyone confirm whether or not the "hot code replace" feature is
> supported when debugging a remote Java application? I am debugging
> Java code in a JVM that resides in a remote process. I am able to
> successfully attach the debugger to the remote JVM, set breakpoints,
> step through code, etc. But when I try to edit the source code, Eclipse
> will not let me change it (typing in the Java code editor has no effect).
>
> I can use hot code replace successfully when debugging a simple Java
> application that is launched via the debugger. That is, when I change
> the source code and then save the file, it is automatically compiled and
> the code running in the JVM is updated. I can see the changes in my
> debugging session. (Note that I am simply trying to modify the body of
> a method, not change any class or method signatures.)
>
> I am using Eclipse 3.0.1. My remote JVM is:
>
> java version "1.4.2_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
>
> I instantiate it via the invocation API, using the following startup
> options:
>
> -Xdebug
> -Xrunjdwp:transport=dt_socket,address=7979,server=y,suspend= n
> -Xnoagent
> -Djava.compiler=NONE
> -Xmx512M
>
> Thanks and let me know if you need more info...
>
|
|
|
Re: hot code replace supported in remote debugging session? [message #198322 is a reply to message #198292] |
Thu, 10 March 2005 21:30 |
Eclipse User |
|
|
|
Originally posted by: zhangrusi.yahoo.com
Yes, using a .class file instead did the trick. Thanks!
Jared Burns wrote:
> Yes, HCR works for remote VM debugging.
> If you can't edit the Java source file, that has nothing to do with HCR.
> Sounds like you're looking at source from a JAR, so it's marked read-only.
> - Jared
> zhangrusi wrote:
>> Hi,
>>
>> Can anyone confirm whether or not the "hot code replace" feature is
>> supported when debugging a remote Java application? I am debugging
>> Java code in a JVM that resides in a remote process. I am able to
>> successfully attach the debugger to the remote JVM, set breakpoints,
>> step through code, etc. But when I try to edit the source code, Eclipse
>> will not let me change it (typing in the Java code editor has no effect).
>>
>> I can use hot code replace successfully when debugging a simple Java
>> application that is launched via the debugger. That is, when I change
>> the source code and then save the file, it is automatically compiled and
>> the code running in the JVM is updated. I can see the changes in my
>> debugging session. (Note that I am simply trying to modify the body of
>> a method, not change any class or method signatures.)
>>
>> I am using Eclipse 3.0.1. My remote JVM is:
>>
>> java version "1.4.2_06"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
>> Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
>>
>> I instantiate it via the invocation API, using the following startup
>> options:
>>
>> -Xdebug
>> -Xrunjdwp:transport=dt_socket,address=7979,server=y,suspend= n
>> -Xnoagent
>> -Djava.compiler=NONE
>> -Xmx512M
>>
>> Thanks and let me know if you need more info...
>>
|
|
|
Goto Forum:
Current Time: Fri Dec 27 02:23:33 GMT 2024
Powered by FUDForum. Page generated in 0.02938 seconds
|