javadebuggingwebspheremyeclipse

MyEclipse 2016 Debugger Using Wrong Version of Code


I just updated to MyEclipse 2016, and I am having some issues getting my code to debug.

I wrote some changes in a java file and am trying to debug them on my websphere application server, but I noticed the debugger wasn't following the code at all. After a little investigation it turns out that I'm on V5 of the code, but the debugger is running V4 of the code.

I've tried going into the menu at

Run -> Debug Configurations... -> (Select My Server) -> Source

and changing the sources listed in here to just the workspace projects, but the debugger still goes through the old version of the code.

I'm at a loss and don't know what to do to get the debugger to pick up the right code. Does anybody have any suggestions I could try to get my debugger to pick up the new version of my code?

Edit: Forgot to include, Project --> Build Automatically is checked in the menus, and I have tried manually cleaning this a few times myself as well.


Solution

  • From your last comment, this means that the V4 code is actually executing on the server. The debugger is not executing anything; it is the server that is executing the code. So you have the wrong version deployed, somehow. Try a clean on the server, to remove any deployments and then re-deploy your project.