- This topic has 6 replies, 2 voices, and was last updated 21 years, 4 months ago by
emmanuel.
-
AuthorPosts
-
emmanuelMemberHello all,
I’m at my wits end :shock:. Please help!
For some reason, hot swapping does not work unless in debug mode.
Configuration follows;
– Windows XP,
– Tomcat 4.1.12,
– Eclipse 2.1.2,
– MyEclipseIde 2.6.4,
– j2sdk1.4.1_02.This is a new installation of MyEclipseIde at the office. At home it works just 100%. I downloaded and imported HelloWold as per the tutorial and still no hot-swapping in ‘run mode’.
Could you please assist?
Kind regards
Emmanuel
Scott AndersonParticipantEmmanuel,
Hot swap code replacement is performed by the Eclipse debugger in cooperation with the debugging framework within the remote JVM. When you launch in Run mode, you disable debugging and the overhead that it requires. Perhaps what you want to do is launch in Debug mode but disable all your breakpoints in the breakpoints view? That will give you hot swap code replacement and no stopping at breakpoints.
–Scott
MyEclpise Support
emmanuelMemberHello Scott,
Thank you for your reply & feedback.
But, then why does hot swapping work in both modes (debug & run) with my home project?
Kind regards
Emmanuel
Scott AndersonParticipantEmmanuel,
But, then why does hot swapping work in both modes (debug & run) with my home project?
Interesting question. Is it Java in both cases? I tried hotswap with WebLogic and it works fine in debug mode but is disabled in run mode. This is actually what I’d expect, but I don’t think I’ve ever tried hotswap on a java project when in run mode. If I’m modifying code, I’m obviously debugging. 🙂
–Scott
MyEclipse Support
emmanuelMemberHello Scott,
>>Is it Java in both cases?
Yes.There are these environmental differences with home and work projects;
Office project environment as stated above.
Home project environment;
– Windows 2000 Professional,
– prior to installing any java apps, I installed j2sdk1.4 (a previous version to j2sdk1.4.1_02, can’t remember which version)
– Eclipse 2.1.1,
– MyEclipseIde 2.6.2.Please advise whether you have any further thoughts?
Kind regards
Emmanuel
Scott AndersonParticipantEmmanuel,
Please advise whether you have any further thoughts?
I really don’t have any further thoughts other than it’s a bit peculiar. It could be something with the way the remote JVM’s are managed for servers. Presently, I’d suggest launching in Debug mode if you want hot swap to work. We’ll have to investigate this with more depth with the development team.
–Scott
MyEclipse Support
emmanuelMemberHello Scott,
Thank you again; I’ll use the debug mode as suggested.
>>We’ll have to investigate this with more depth with the development team.
This’ll be great, thank you; and when they get it working in ‘run mode’, it’ll in fact have the added benefit of using less resources.Kind regards
Emmanuel -
AuthorPosts