Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse debugger runs wrong version of code

Tags:

eclipse

I copied an Eclipse Java project and tried to run the debugger on the copied version. The debugger used the code of the old project. What can I do in this situation?

like image 556
intA Avatar asked Jan 01 '12 19:01

intA


People also ask

How do I reverse debug in Eclipse?

Open up Eclipse. Go to the run menu and select debug configurations. From the debugger tab, change the gdb debugger from gdb to undodb-gdb to enable reversible debugging. Enable reverse debugging at startup to enable reverse debug.

How do I change debug value in Eclipse?

Click on Window -> Open Perspective -> Debug. Click on Tab Variables. Right click the variable for which you want to change the value and click on Change Value... Set the Value as Boolean.

What is the difference between debug and run in Eclipse?

When you're debugging, Eclipse will stop at breakpoints and allow other debugging actions (view running threads, etc.). When you run, it won't. If you start by selecting "Run", you can later attach the debugger through the Device view. That will switch to "Debug" mode.


2 Answers

Right-click on the top frame in the debugger's stack view, and select "Edit source lookup...". Remove the incorrect source entry from the list, and/or add the correct one.

like image 40
Luke Hutchison Avatar answered Oct 13 '22 03:10

Luke Hutchison


Have a look at the launch configuration that you are using to start the debugger. In the Package/Project explorer, do right-click Debug As.. and then select Debug Configurations and make sure all of the details of the launch configuration you are using line up with your new project.

like image 172
Francis Upton IV Avatar answered Oct 13 '22 03:10

Francis Upton IV