Link to home
Start Free TrialLog in
Avatar of csdouglass
csdouglass

asked on

Debugger in Borland's 5.0 suite

I took over a project a couple of weeks ago when another programmer left our company.  I did not get to keep the project on his machine;  I had to move it to mine.  I was able to work on it on his machine for a short period of time before moving it to my machine, and there was no problem then.  On his machine both Borland and the project were on drive d:.  On my machine, I had to put Borland on drive c: and the project on drive d:.

Now here's the problem.  When I run my program with the debugger, the line offsets are off by one.  If I want to set a breakpoint, I have to select the line below the one where I want it to stop.  I know that this implies that it's finding the incorrect object or source code.  But I do have the pathnames for my libs, includes, and source code entered correctly in the project and environment options.  My source and object code both reside in the same directory with the ide.  There is also at least one of the source files where the debugger is more than one line off and I can't tell where I am at all.

The strange part is that within the directory there is a subdirectory containing a backup of the contents of the original directory.  When I rebuild and run the program there, the debugger works correctly.  I have already made some significant changes in the original directory, so I don't want to copy the contents of the backup directory and use it.

This is a list of what I've already tried.

1.  Deleted object and executable files, did a rescan (it was built with AppExpert), then recompiled and linked.  Everyone I work with tells me this should have been all I needed to do.

2.  I did variations of #1 with no success.

3.  I moved the sources only to a new directory, did a rescan, then rebuilt the program.

4.  I moved the contents of the backup directory to a new directory, moved the newer sources from the original directory in to replace the older ones, did a rescan, then rebuilt the program.

5.  I looked to make sure the individual nodes did not disagree with the pathnames for the libs, includes, etc.

None of these experiments succeeded.  I know the program is picking up the correct object code (at least for the files I've worked on)when it links because it will respond differently as it executes the changes I've made.  I can't go back to original machine to get anything now as its new user has reformatted the disks.

All suggestions will be tremendously appreciated.
ASKER CERTIFIED SOLUTION
Avatar of winmeister
winmeister
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial