facebook

Hot swap – does not work in run mode

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #200413 Reply

    emmanuel
    Member

    Hello 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

    #200421 Reply

    Scott Anderson
    Participant

    Emmanuel,

    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

    #200423 Reply

    emmanuel
    Member

    Hello 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

    #200434 Reply

    Scott Anderson
    Participant

    Emmanuel,

    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

    #200465 Reply

    emmanuel
    Member

    Hello 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

    #200473 Reply

    Scott Anderson
    Participant

    Emmanuel,

    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

    #200476 Reply

    emmanuel
    Member

    Hello 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

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Hot swap – does not work in run mode

You must be logged in to post in the forum log in